Skip to content

Commit 5d836b4

Browse files
committed
ci(release): include zig wrapper in shared cache key
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
1 parent 21abe56 commit 5d836b4

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/release-dev.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,7 @@ jobs:
432432
- name: Cache Rust target and registry
433433
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2
434434
with:
435-
shared-key: gateway-binary-gnu-${{ matrix.arch }}
436-
key: zig-wrapper-${{ hashFiles('tasks/scripts/setup-zig-cc-wrapper.sh') }}
435+
shared-key: gateway-binary-gnu-${{ matrix.arch }}-zig-wrapper-${{ hashFiles('tasks/scripts/setup-zig-cc-wrapper.sh') }}
437436
cache-directories: .cache/sccache
438437
cache-targets: "true"
439438

.github/workflows/release-tag.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,7 @@ jobs:
453453
- name: Cache Rust target and registry
454454
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2
455455
with:
456-
shared-key: gateway-binary-gnu-${{ matrix.arch }}
457-
key: zig-wrapper-${{ hashFiles('tasks/scripts/setup-zig-cc-wrapper.sh') }}
456+
shared-key: gateway-binary-gnu-${{ matrix.arch }}-zig-wrapper-${{ hashFiles('tasks/scripts/setup-zig-cc-wrapper.sh') }}
458457
cache-directories: .cache/sccache
459458
cache-targets: "true"
460459

.github/workflows/rust-native-build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ jobs:
162162
- name: Cache Rust target and registry
163163
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2
164164
with:
165-
shared-key: rust-native-${{ inputs.component }}-${{ inputs.arch }}
166-
key: zig-wrapper-${{ hashFiles('tasks/scripts/setup-zig-cc-wrapper.sh') }}
165+
shared-key: rust-native-${{ inputs.component }}-${{ inputs.arch }}-zig-wrapper-${{ hashFiles('tasks/scripts/setup-zig-cc-wrapper.sh') }}
167166
cache-directories: .cache/sccache
168167
cache-targets: "true"
169168

0 commit comments

Comments
 (0)