fix: use shell-based hash instead of go-hashfiles
Some checks failed
Rust Build Cache Test / build (push) Failing after 4s

This commit is contained in:
Hermes
2026-05-02 13:59:56 -07:00
parent c954996a9a
commit fd145c57d8

View File

@@ -19,11 +19,10 @@ jobs:
- name: Get Cargo lock hash
id: hash
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
with:
patterns: |
Cargo.lock
Cargo.toml
run: |
echo "hash=$(cat Cargo.lock Cargo.toml | sha256sum | cut -d' ' -f1)" >> $GITHUB_OUTPUT
echo "=== Manifest hash ==="
echo "${{ env.hash }}"
- name: Cache cargo
uses: https://gitea.com/actions/cache@v3
@@ -36,16 +35,17 @@ jobs:
restore-keys: |
rust-${{ runner.os }}-
- name: Show cache info
- name: Show cache info (before build)
run: |
echo "=== Cache Key ==="
echo "rust-${{ runner.os }}-${{ steps.hash.outputs.hash }}"
echo ""
echo "=== Cargo cache directories ==="
echo "=== Cargo cache directories (before build) ==="
du -sh ~/.cargo/registry ~/.cargo/git target 2>/dev/null || echo "Dirs not yet present"
echo ""
echo "=== Cargo version ==="
cargo --version
rustc --version
- name: Build
run: cargo build --verbose