We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e5ffb4 commit 9181bceCopy full SHA for 9181bce
.github/workflows/ci.yml
@@ -59,9 +59,18 @@ jobs:
59
- uses: moonrepo/setup-rust@v1
60
with:
61
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 can cause build failures for native dependencies
64
+ # We disable the cache here and use Swatinem/rust-cache instead
65
+ cache: false
66
env:
67
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68
69
+ # Use this in place of the moonrepo/setup-rust cache, see above for explanation
70
+ - uses: Swatinem/rust-cache@v2
71
+ with:
72
+ shared-key: ${{ matrix.job.target }}
73
+
74
- uses: taiki-e/install-action@v2
75
76
tool: [email protected]
0 commit comments