diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c12c4af..717a073 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,17 +24,12 @@ jobs: uses: actions/checkout@v3 - name: Install toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - profile: minimal - override: true - name: Run cargo check - uses: actions-rs/cargo@v1 - with: - command: check - args: --benches + run: cargo check test: name: Test suite @@ -44,17 +39,10 @@ jobs: uses: actions/checkout@v3 - name: Install toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true + uses: dtolnay/rust-toolchain@stable - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: --release + run: cargo test loom-dry-run: name: Loom dry run @@ -64,17 +52,10 @@ jobs: uses: actions/checkout@v3 - name: Install toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true + uses: dtolnay/rust-toolchain@stable - name: Dry-run cargo test (Loom) - uses: actions-rs/cargo@v1 - with: - command: test - args: --no-run --tests + run: cargo test --no-run --tests env: RUSTFLAGS: --cfg asynchronix_loom @@ -86,22 +67,13 @@ jobs: uses: actions/checkout@v3 - name: Install toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: default - override: true + uses: dtolnay/rust-toolchain@stable - name: Run cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: cargo fmt --all -- --check - name: Run cargo clippy - uses: actions-rs/cargo@v1 - with: - command: clippy + run: cargo clippy docs: name: Docs @@ -111,14 +83,7 @@ jobs: uses: actions/checkout@v3 - name: Install toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true + uses: dtolnay/rust-toolchain@stable - name: Run cargo doc - uses: actions-rs/cargo@v1 - with: - command: doc - args: --no-deps --document-private-items + run: cargo doc --no-deps --document-private-items diff --git a/.github/workflows/loom.yml b/.github/workflows/loom.yml index a65424e..6ff8bcd 100644 --- a/.github/workflows/loom.yml +++ b/.github/workflows/loom.yml @@ -19,16 +19,9 @@ jobs: uses: actions/checkout@v3 - name: Install toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true + uses: dtolnay/rust-toolchain@stable - name: Run cargo test (Loom) - uses: actions-rs/cargo@v1 - with: - command: test - args: --tests --release + run: cargo test --tests --release env: RUSTFLAGS: --cfg asynchronix_loom \ No newline at end of file