diff --git a/.github/workflows/bench.yaml b/.github/workflows/bench.yaml index 6e0f24efa..1810e12f2 100644 --- a/.github/workflows/bench.yaml +++ b/.github/workflows/bench.yaml @@ -20,11 +20,9 @@ jobs: uses: actions/checkout@v3 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: artichoke/setup-rust/build-and-test@v1 with: toolchain: nightly - profile: minimal - override: true - name: Compile run: cargo build --verbose diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 04a99950d..0cc1c08da 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,10 +25,9 @@ jobs: uses: actions/checkout@v3 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: artichoke/setup-rust/build-and-test@v1 with: toolchain: stable - profile: minimal - name: Compile run: cargo build --verbose @@ -56,11 +55,9 @@ jobs: uses: actions/checkout@v3 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: artichoke/setup-rust/build-and-test@v1 with: toolchain: "1.47.0" - profile: minimal - override: true - name: Compile run: cargo build --verbose @@ -93,21 +90,15 @@ jobs: uses: actions/checkout@v3 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: artichoke/setup-rust/lint-and-format@v1 with: toolchain: nightly - profile: minimal - override: true - components: rustfmt, clippy - name: Check formatting - run: cargo fmt -- --check --color=auto + run: cargo fmt --check - name: Lint with Clippy - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features --all-targets + run: cargo clippy --workspace --all-features --all-targets ruby: name: Lint and format Ruby