We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c25692e commit 65a8bd9Copy full SHA for 65a8bd9
1 file changed
.github/workflows/build-ci.yml
@@ -7,6 +7,7 @@ jobs:
7
build:
8
name: Build Windows
9
runs-on: windows-latest
10
+
11
steps:
12
- name: Check out code
13
uses: actions/checkout@v4
@@ -25,10 +26,10 @@ jobs:
25
26
27
# Generate custom cache key from Cargo.toml
28
- name: Generate custom cache key
- id: cargo-hash
29
+ shell: bash
30
run: |
- 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
+ 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"
33
34
# Cache Rust crates
35
- name: Cache Cargo registry
0 commit comments