diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6ef7a35..1055103 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,15 +13,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: dtolnay/rust-toolchain@stable - name: Cache Rust registry based on toml file - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cargo/registry/cache/ key: rust-${{ hashFiles('Cargo.toml') }} - - uses: mozilla-actions/sccache-action@v0.0.3 + - uses: mozilla-actions/sccache-action@v0.0.5 - run: cargo test --workspace - run: cargo test --workspace -F=py @@ -29,15 +27,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: dtolnay/rust-toolchain@stable - name: Cache Rust registry based on toml file - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.cargo/registry/cache/ key: rust-${{ hashFiles('Cargo.toml') }} - - uses: mozilla-actions/sccache-action@v0.0.3 + - uses: mozilla-actions/sccache-action@v0.0.5 - run: cargo clippy --workspace - run: cargo clippy --workspace -F=py @@ -45,15 +41,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: dtolnay/rust-toolchain@nightly with: components: rustfmt - - name: Cache Rust registry based on toml file - uses: actions/cache@v3 - with: - path: ~/.cargo/registry/cache/ - key: rust-${{ hashFiles('Cargo.toml') }} - - uses: mozilla-actions/sccache-action@v0.0.3 - run: cargo fmt -- --check