Skip to content

Commit 65a8bd9

Browse files
committed
chore(ci): fix cache key
1 parent c25692e commit 65a8bd9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/build-ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ jobs:
77
build:
88
name: Build Windows
99
runs-on: windows-latest
10+
1011
steps:
1112
- name: Check out code
1213
uses: actions/checkout@v4
@@ -25,10 +26,10 @@ jobs:
2526

2627
# Generate custom cache key from Cargo.toml
2728
- name: Generate custom cache key
28-
id: cargo-hash
29+
shell: bash
2930
run: |
30-
grep -v '^version = ' src-tauri/Cargo.toml | shasum -a 256 | awk '{ print $1 }' > cargo_hash.txt
31-
echo "CARGO_CACHE_KEY=$(cat cargo_hash.txt)" >> $GITHUB_ENV
31+
grep -v '^version = ' src-tauri/Cargo.toml | sha256sum | cut -d ' ' -f1 | tee cargo_hash.txt
32+
echo "CARGO_CACHE_KEY=$(cat cargo_hash.txt)" >> "$GITHUB_ENV"
3233
3334
# Cache Rust crates
3435
- name: Cache Cargo registry

0 commit comments

Comments
 (0)