Skip to content

Commit 0fa11fb

Browse files
authored
ci: disable cache for cross release gen (#942)
1 parent b7bf574 commit 0fa11fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build_releases.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@ jobs:
139139
sh rustup.sh --default-toolchain stable -y
140140
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
141141
142+
# We disable this for cross builds, as it seems to cause some issues.
142143
- name: Enable Rust cache
143144
uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # 2.2.0
145+
if: matrix.info.cross != true
144146
with:
145147
shared-key: build-cache-${{ matrix.info.target }}
146148
save-if: "false"
@@ -317,6 +319,7 @@ jobs:
317319
target: ${{ matrix.info.target }}
318320

319321
- name: Enable Rust cache
322+
if: matrix.info.cross != true
320323
uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # 2.2.0
321324
with:
322325
shared-key: build-cache-${{ matrix.info.target }}

0 commit comments

Comments
 (0)