Skip to content

Commit bec3fc5

Browse files
ci: stop using @moonrepo/setup-rust for cache
1 parent 8e5ffb4 commit bec3fc5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,17 @@ jobs:
5959
- uses: moonrepo/setup-rust@v1
6060
with:
6161
targets: ${{ matrix.job.target }}
62+
# moonrepo/setup-rust does not allow for different cache keys per matrix job
63+
# This causes cache to be shared between `linux-gnu` and `linux-musl` builds which causes build failures
64+
# We disable the cache here and use Swatinem/rust-cache instead
65+
cache: false
6266
env:
6367
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6468

69+
- uses: Swatinem/rust-cache@v2
70+
with:
71+
shared-key: ${{ matrix.job.target }}
72+
6573
- uses: taiki-e/install-action@v2
6674
with:
6775

0 commit comments

Comments
 (0)