diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ef58635..a9fb17a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,15 +12,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - uses: actions-rs/toolchain@v1 + + - name: Set up Rust toolchain + uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: stable - components: rustfmt - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + + - run: cargo fmt --all -- --check clippy: name: Clippy runs-on: ubuntu-latest @@ -33,29 +31,27 @@ jobs: cargo-args: "" steps: - uses: actions/checkout@v6 - - uses: actions-rs/toolchain@v1 + + - name: Set up Rust toolchain + uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.toolchain }} components: clippy - - uses: actions-rs/cargo@v1 - with: - toolchain: ${{ matrix.toolchain }} - command: clippy - args: ${{ matrix.cargo-args }} -- -D warnings + + - run: "cargo clippy ${{ matrix.cargo-args }} -- -D warnings" package: name: Cargo package runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - uses: actions-rs/toolchain@v1 + + - name: Set up Rust toolchain + uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: stable - components: rustfmt - - uses: actions-rs/cargo@v1 - with: - command: package + + - name: Package + run: cargo package build_and_test: name: Build and test runs-on: ubuntu-latest