diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index f3d6ef8..a03b0cb 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -11,11 +11,14 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + + - name: Toolchain + uses: dtolnay/rust-toolchain@stable with: toolchain: stable - override: true + components: rustfmt, clippy + - uses: Swatinem/rust-cache@v2 - name: Rustfmt diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c06c48b..718d010 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,10 +13,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 + + - name: Toolchain + uses: dtolnay/rust-toolchain@stable with: toolchain: stable - override: true + - uses: Swatinem/rust-cache@v2 - uses: katyo/publish-crates@v2