use go hash
Some checks failed
Cargo / build (push) Failing after 17s
Cargo / check (push) Successful in 1m0s
Cargo / test (push) Successful in 1m34s

This commit is contained in:
2025-07-18 13:48:36 +01:00
parent 032d043c3e
commit d90307ad16

View File

@ -10,15 +10,25 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: '1.24'
- uses: actions/go-hashfiles@v0.0.1
id: get-hash
with:
patterns: |-
**/Cargo.toml
- name: Echo hash
run: echo ${{ steps.get-hash.outputs.hash }}
- name: Cargo target cache
uses: actions/cache@v4
with:
path: |
~/.cargo
target
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-target-${{ setps.get-hash.outputs.hash }}-${{ setps.get-hash.outputs.hash }}
restore-keys: |
${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
${{ runner.os }}-cargo-target-${{ setps.get-hash.outputs.hash }}
${{ runner.os }}-cargo-target
- name: Build project
uses: actions-rs/cargo@v1