From 04fbbb2867ccd7298622f60e680fb0bbc5bb47d3 Mon Sep 17 00:00:00 2001 From: Dave Rolsky Date: Sat, 31 Aug 2024 13:27:25 -0500 Subject: [PATCH] temp debug --- .github/workflows/audit-nightly.yml | 12 ---- .github/workflows/audit-on-push.yml | 14 ----- .github/workflows/ci.yml | 85 ---------------------------- .github/workflows/lint.yml | 31 ---------- .github/workflows/test-bootstrap.yml | 74 ------------------------ 5 files changed, 216 deletions(-) delete mode 100644 .github/workflows/audit-nightly.yml delete mode 100644 .github/workflows/audit-on-push.yml delete mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/test-bootstrap.yml diff --git a/.github/workflows/audit-nightly.yml b/.github/workflows/audit-nightly.yml deleted file mode 100644 index a5df59d..0000000 --- a/.github/workflows/audit-nightly.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Security audit - nightly - -on: - schedule: - - cron: "0 0 * * *" - -jobs: - security_audit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions-rust-lang/audit@v1 diff --git a/.github/workflows/audit-on-push.yml b/.github/workflows/audit-on-push.yml deleted file mode 100644 index 211bec8..0000000 --- a/.github/workflows/audit-on-push.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Security audit - on push - -on: - push: - paths: - - "**/Cargo.toml" - - "**/Cargo.lock" - -jobs: - security_audit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions-rust-lang/audit@v1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1306855..6c9c4cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,12 +17,6 @@ jobs: # - sparc64-unknown-linux-gnu - cannot compile openssl-sys # - x86_64-unknown-illumos - weird error compiling openssl - "bin/sh: 1: granlib: not found" - - os_name: FreeBSD-x86_64 - os: ubuntu-20.04 - target: x86_64-unknown-freebsd - bin: ubi - name: ubi-FreeBSD-x86_64.tar.gz - skip_tests: true - os_name: Linux-x86_64 os: ubuntu-20.04 target: x86_64-unknown-linux-musl @@ -44,85 +38,6 @@ jobs: target: x86_64-unknown-linux-musl bin: ubi features: native-tls-vendored - - os_name: Linux-aarch64 - os: ubuntu-20.04 - target: aarch64-unknown-linux-musl - bin: ubi - name: ubi-Linux-aarch64-musl.tar.gz - - os_name: Linux-arm - os: ubuntu-20.04 - target: arm-unknown-linux-musleabi - bin: ubi - name: ubi-Linux-arm-musl.tar.gz - - os_name: Linux-i686 - os: ubuntu-20.04 - target: i686-unknown-linux-musl - bin: ubi - name: ubi-Linux-i686-musl.tar.gz - skip_tests: true - - os_name: Linux-powerpc - os: ubuntu-20.04 - target: powerpc-unknown-linux-gnu - bin: ubi - name: ubi-Linux-powerpc-gnu.tar.gz - skip_tests: true - - os_name: Linux-powerpc64 - os: ubuntu-20.04 - target: powerpc64-unknown-linux-gnu - bin: ubi - name: ubi-Linux-powerpc64-gnu.tar.gz - skip_tests: true - - os_name: Linux-powerpc64le - os: ubuntu-20.04 - target: powerpc64le-unknown-linux-gnu - bin: ubi - name: ubi-Linux-powerpc64le.tar.gz - skip_tests: true - - os_name: Linux-riscv64 - os: ubuntu-20.04 - target: riscv64gc-unknown-linux-gnu - bin: ubi - name: ubi-Linux-riscv64gc-gnu.tar.gz - - os_name: Linux-s390x - os: ubuntu-20.04 - target: s390x-unknown-linux-gnu - bin: ubi - name: ubi-Linux-s390x-gnu.tar.gz - skip_tests: true - - os_name: NetBSD-x86_64 - os: ubuntu-20.04 - target: x86_64-unknown-netbsd - bin: ubi - name: ubi-NetBSD-x86_64.tar.gz - skip_tests: true - - os_name: Windows-aarch64 - os: windows-latest - target: aarch64-pc-windows-msvc - bin: ubi.exe - name: ubi-Windows-aarch64.zip - skip_tests: true - - os_name: Windows-i686 - os: windows-latest - target: i686-pc-windows-msvc - bin: ubi.exe - name: ubi-Windows-i686.zip - skip_tests: true - - os_name: Windows-x86_64 - os: windows-latest - target: x86_64-pc-windows-msvc - bin: ubi.exe - name: ubi-Windows-x86_64.zip - - os_name: macOS-x86_64 - os: macOS-latest - target: x86_64-apple-darwin - bin: ubi - name: ubi-Darwin-x86_64.tar.gz - - os_name: macOS-aarch64 - os: macOS-latest - target: aarch64-apple-darwin - bin: ubi - name: ubi-Darwin-aarch64.tar.gz - skip_tests: true toolchain: - stable - beta diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 63906bc..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Linting - -on: [push, pull_request] - -env: - CRATE_NAME: precious - GITHUB_TOKEN: ${{ github.token }} - RUST_BACKTRACE: 1 - -jobs: - lint: - name: Check that code is lint clean using precious - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Cache cargo & target directories - uses: Swatinem/rust-cache@v2 - - name: Install toolchain - uses: dtolnay/rust-toolchain@stable - - name: Configure Git - run: | - git config --global user.email "jdoe@example.com" - git config --global user.name "J. Doe" - - name: Run install-dev-tools.sh - run: | - set -e - mkdir $HOME/bin - ./dev/bin/install-dev-tools.sh - - name: Run precious - run: | - PATH=$PATH:$HOME/bin precious lint -a diff --git a/.github/workflows/test-bootstrap.yml b/.github/workflows/test-bootstrap.yml deleted file mode 100644 index c247665..0000000 --- a/.github/workflows/test-bootstrap.yml +++ /dev/null @@ -1,74 +0,0 @@ -name: Test bootstrap - -on: - push: - pull_request: - release: - types: [published] - -env: - GITHUB_TOKEN: ${{ github.token }} - -jobs: - test-bootstrap: - name: ${{ matrix.platform.os_name }} - ${{ matrix.platform.script }} - runs-on: ${{ matrix.platform.os }} - strategy: - fail-fast: false - matrix: - platform: - - os_name: Linux - os: ubuntu-latest - script: bootstrap-ubi.sh - - os_name: macOS - os: macOS-latest - script: bootstrap-ubi.sh - - os_name: Windows - os: windows-latest - script: bootstrap-ubi.ps1 - # Curl seems to be broken in this environment for some reason. See here for an example - - # https://github.com/houseabsolute/ubi/actions/runs/10022996389/job/27703398529 - # - # - os_name: Windows - # os: windows-latest - # script: bootstrap-ubi.sh - steps: - - uses: actions/checkout@v4 - - name: Run bootstrap script - shell: bash - run: | - set -e - mkdir -p "$HOME/bin" - - UBI_DEBUG_BOOTSTRAP=1 ./bootstrap/${{ matrix.platform.script }} - if [ ! -x "$HOME/bin/ubi" ]; then - echo "Running ./bootstrap/${{ matrix.platform.script }} did not install ubi!" - exit 1 - fi - - "$HOME/bin/ubi" --project houseabsolute/precious --in "$HOME/bin" - if [ ! -x "$HOME/bin/precious" ]; then - echo "Running ubi did not install precious!" - exit 1 - fi - - exit 0 - if: ${{ matrix.platform.script == 'bootstrap-ubi.sh' }} - - name: Run bootstrap script - shell: powershell - run: | - powershell -exec bypass ./bootstrap/bootstrap-ubi.ps1 - - if ( -not( Test-Path -Path "ubi.exe" ) ) { - Write-Host "Running ./bootstrap/${{ matrix.platform.script }} did not install ubi!" - exit 1 - } - - ./ubi.exe --project houseabsolute/precious --in "." - if ( -not( Test-Path -Path "precious.exe" ) ) { - Write-Host "Running ubi did not install precious!" - exit 2 - } - - exit 0 - if: ${{ matrix.platform.script == 'bootstrap-ubi.ps1' }}