fix: use portable grep instead of sed for cache hash computation

This commit is contained in:
t8y2
2026-05-04 19:04:45 +08:00
parent cdd64c9edf
commit 0f73e2d9ca
+1 -1
View File
@@ -49,7 +49,7 @@ jobs:
id: deps-hash
shell: bash
run: |
hash=$(sed '/^name = "dbx"$/,/^$/{ /^version = /d }' src-tauri/Cargo.lock | shasum -a 256 | cut -d' ' -f1)
hash=$(grep -v '^version = ' src-tauri/Cargo.lock | shasum -a 256 | cut -d' ' -f1)
echo "hash=${hash:0:20}" >> "$GITHUB_OUTPUT"
- name: Rust cache