fix: use shell-based hash instead of go-hashfiles
Some checks failed
Rust Build Cache Test / build (push) Failing after 4s
Some checks failed
Rust Build Cache Test / build (push) Failing after 4s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user