diff options
author | Blaž Hrastnik | 2023-10-31 02:55:12 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-10-31 02:55:34 +0000 |
commit | ccc3085ad001d6d89e25ea854221d728bd0462a0 (patch) | |
tree | 23778c334de30434a218983c4782c85c09fe9eb4 | |
parent | 566f41635eae6b7533773d7b6b1aa89e980db8ed (diff) |
ci: Use a shared cache across build workflow steps
-rw-r--r-- | .github/workflows/build.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2c6267b7..e8c55fa4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,8 @@ jobs: override: true - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" - name: Run cargo check run: cargo check @@ -40,6 +42,8 @@ jobs: uses: dtolnay/rust-toolchain@1.65 - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" - name: Cache test tree-sitter grammar uses: actions/cache@v3 @@ -71,6 +75,8 @@ jobs: components: rustfmt, clippy - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" - name: Run cargo fmt run: cargo fmt --all --check @@ -94,6 +100,8 @@ jobs: uses: dtolnay/rust-toolchain@1.65 - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" - name: Validate queries run: cargo xtask query-check |