Skip to content

Commit

Permalink
chore(ci): Use separate cache prefix for cross building (#7366)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr authored Nov 1, 2023
1 parent 774e3ae commit 0f8de97
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -737,11 +737,11 @@ jobs:
target: ${{ matrix.target }}
override: true
components: rustfmt
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
working-directory: rust/cubestore
key: cross-${{ runner.OS }}-${{ matrix.target }}
sharedKey: cross-${{ runner.OS }}-${{ matrix.target }}
workspaces: ./rust/cubestore -> target
prefix-key: v0-rust-cubestore-cross
key: target-${{ matrix.target }}
- run: source .github/actions/${{ matrix.before_script }}.sh
if: ${{ matrix.before_script }}
shell: bash
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/rust-cubestore-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: ./rust/cubestore -> target
# We should use a separate key for testing to pass disk space limitations
shared-key: cubestore-testing
key: ubuntu-20.04
prefix-key: v0-rust-cubestore-cross
key: target-${{ matrix.target }}
- run: source .github/actions/${{ matrix.before_script }}.sh
if: ${{ matrix.before_script }}
shell: bash
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/rust-cubestore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ jobs:
target: ${{ matrix.target }}
override: true
components: rustfmt
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
working-directory: rust/cubestore
key: cross-${{ runner.OS }}-${{ matrix.target }}
sharedKey: cross-${{ runner.OS }}-${{ matrix.target }}
workspaces: ./rust/cubestore -> target
prefix-key: v0-rust-cubestore-cross
key: target-${{ matrix.target }}
- run: source .github/actions/${{ matrix.before_script }}.sh
if: ${{ matrix.before_script }}
shell: bash
Expand Down

0 comments on commit 0f8de97

Please sign in to comment.