diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 776bdee6..a9845180 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -36,9 +36,7 @@ jobs: python -m pip install --upgrade pip - name: Set up rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable + uses: dtolnay/rust-toolchain@stable - name: Run benchmarks run: cargo bench @@ -62,9 +60,7 @@ jobs: python -m pip install --upgrade pip - name: Set up rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable + uses: dtolnay/rust-toolchain@stable - name: Install dependencies run: | diff --git a/.github/workflows/build-crate.yml b/.github/workflows/build-crate.yml index 473c5760..adfd8bcc 100644 --- a/.github/workflows/build-crate.yml +++ b/.github/workflows/build-crate.yml @@ -24,16 +24,7 @@ jobs: fetch-depth: 0 - name: Set up rusts - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - components: rustfmt, clippy - - - name: Set up rust (stable) - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - components: rustfmt, clippy + uses: dtolnay/rust-toolchain@stable - name: fmt (stable) run: cargo +stable fmt -- --files-with-diff --check diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index bbc80fff..0fad260d 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -40,9 +40,7 @@ jobs: python -m pip install --upgrade pip - name: Set up rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable + uses: dtolnay/rust-toolchain@stable - name: Install dependencies run: | @@ -169,10 +167,8 @@ jobs: with: fetch-depth: 1 - name: Install rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - override: true components: rustfmt, clippy - name: Clippy run: cargo clippy --all-targets --workspace -- -D warnings @@ -194,10 +190,8 @@ jobs: with: fetch-depth: 1 - name: Install rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@nightly with: - toolchain: nightly - override: true components: rustfmt, clippy - name: fmt run: | @@ -230,9 +224,8 @@ jobs: with: fetch-depth: 1 - name: Install rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable components: rustfmt, clippy - name: build @@ -254,9 +247,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable + - uses: dtolnay/rust-toolchain@stable - name: Run for coverage run: | sudo apt-get update