diff --git a/.gitea/workflows/rust-cache-test.yml b/.gitea/workflows/rust-cache-test.yml index 58165f8..14be16c 100644 --- a/.gitea/workflows/rust-cache-test.yml +++ b/.gitea/workflows/rust-cache-test.yml @@ -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