From 190c3fb3266c1327abe1e16d239d72079bc42ead Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 31 Jan 2024 11:37:54 -0500 Subject: [PATCH] remove rust temp --- .github/workflows/rust.yml | 114 ------------------------------------- 1 file changed, 114 deletions(-) delete mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml deleted file mode 100644 index 495635a4..00000000 --- a/.github/workflows/rust.yml +++ /dev/null @@ -1,114 +0,0 @@ -# Maintained in https://github.com/coreos/repo-templates -# Do not edit downstream. - -name: Rust -on: - push: - branches: [main] - pull_request: - branches: [main] -permissions: - contents: read - -# don't waste job slots on superseded code -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -env: - CARGO_TERM_COLOR: always - # Pinned toolchain for linting - ACTIONS_LINTS_TOOLCHAIN: 1.71.0 - -jobs: - tests-stable: - name: Tests, stable toolchain - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v3 - - name: Install toolchain - uses: dtolnay/rust-toolchain@v1 - with: - toolchain: stable - - name: Cache build artifacts - uses: Swatinem/rust-cache@v2 - - name: cargo build - run: cargo build --all-targets - - name: cargo test - run: cargo test --all-targets - tests-release-stable: - name: Tests (release), stable toolchain - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v3 - - name: Install toolchain - uses: dtolnay/rust-toolchain@v1 - with: - toolchain: stable - - name: Cache build artifacts - uses: Swatinem/rust-cache@v2 - - name: cargo build (release) - run: cargo build --all-targets --release - - name: cargo test (release) - run: cargo test --all-targets --release - tests-release-msrv: - name: Tests (release), minimum supported toolchain - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v3 - - name: Detect crate MSRV - run: | - msrv=$(cargo metadata --format-version 1 --no-deps | \ - jq -r '.packages[0].rust_version') - echo "Crate MSRV: $msrv" - echo "MSRV=$msrv" >> $GITHUB_ENV - - name: Install toolchain - uses: dtolnay/rust-toolchain@v1 - with: - toolchain: ${{ env.MSRV }} - - name: Cache build artifacts - uses: Swatinem/rust-cache@v2 - - name: cargo build (release) - run: cargo build --all-targets --release - - name: cargo test (release) - run: cargo test --all-targets --release - linting: - name: Lints, pinned toolchain - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v3 - - name: Install toolchain - uses: dtolnay/rust-toolchain@v1 - with: - toolchain: ${{ env.ACTIONS_LINTS_TOOLCHAIN }} - components: rustfmt, clippy - - name: Cache build artifacts - uses: Swatinem/rust-cache@v2 - - name: cargo fmt (check) - run: cargo fmt -- --check -l - - name: cargo clippy (warnings) - run: cargo clippy --all-targets -- -D warnings - tests-other-channels: - name: Tests, unstable toolchain - runs-on: ubuntu-latest - continue-on-error: true - strategy: - matrix: - channel: [beta, nightly] - steps: - - name: Check out repository - uses: actions/checkout@v3 - - name: Install toolchain - uses: dtolnay/rust-toolchain@v1 - with: - toolchain: ${{ matrix.channel }} - - name: Cache build artifacts - uses: Swatinem/rust-cache@v2 - - name: cargo build - run: cargo build --all-targets - - name: cargo test - run: cargo test --all-targets