Skip to content

Commit 0f8de97

Browse files
authored
chore(ci): Use separate cache prefix for cross building (#7366)
1 parent 774e3ae commit 0f8de97

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -737,11 +737,11 @@ jobs:
737737
target: ${{ matrix.target }}
738738
override: true
739739
components: rustfmt
740-
- uses: Swatinem/rust-cache@v1
740+
- uses: Swatinem/rust-cache@v2
741741
with:
742-
working-directory: rust/cubestore
743-
key: cross-${{ runner.OS }}-${{ matrix.target }}
744-
sharedKey: cross-${{ runner.OS }}-${{ matrix.target }}
742+
workspaces: ./rust/cubestore -> target
743+
prefix-key: v0-rust-cubestore-cross
744+
key: target-${{ matrix.target }}
745745
- run: source .github/actions/${{ matrix.before_script }}.sh
746746
if: ${{ matrix.before_script }}
747747
shell: bash

.github/workflows/rust-cubestore-master.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,8 @@ jobs:
244244
- uses: Swatinem/rust-cache@v2
245245
with:
246246
workspaces: ./rust/cubestore -> target
247-
# We should use a separate key for testing to pass disk space limitations
248-
shared-key: cubestore-testing
249-
key: ubuntu-20.04
247+
prefix-key: v0-rust-cubestore-cross
248+
key: target-${{ matrix.target }}
250249
- run: source .github/actions/${{ matrix.before_script }}.sh
251250
if: ${{ matrix.before_script }}
252251
shell: bash

.github/workflows/rust-cubestore.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ jobs:
182182
target: ${{ matrix.target }}
183183
override: true
184184
components: rustfmt
185-
- uses: Swatinem/rust-cache@v1
185+
- uses: Swatinem/rust-cache@v2
186186
with:
187-
working-directory: rust/cubestore
188-
key: cross-${{ runner.OS }}-${{ matrix.target }}
189-
sharedKey: cross-${{ runner.OS }}-${{ matrix.target }}
187+
workspaces: ./rust/cubestore -> target
188+
prefix-key: v0-rust-cubestore-cross
189+
key: target-${{ matrix.target }}
190190
- run: source .github/actions/${{ matrix.before_script }}.sh
191191
if: ${{ matrix.before_script }}
192192
shell: bash

0 commit comments

Comments
 (0)