add cache to other job stages
All checks were successful
Cargo / build (push) Successful in 39s
Cargo / check (push) Successful in 1m7s
Cargo / test (push) Successful in 1m43s

This commit is contained in:
2025-07-18 14:16:08 +01:00
parent 29c23e9f9c
commit 8ca225728b

View File

@ -10,7 +10,7 @@ jobs:
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Cargo target cache - name: Cache
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: | path: |
@ -31,7 +31,16 @@ jobs:
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo
target
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
${{ runner.os }}-cargo-target
- name: Run clippy - name: Run clippy
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
@ -43,13 +52,21 @@ jobs:
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo
target
key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
${{ runner.os }}-cargo-target
- name: Run unit tests - name: Run unit tests
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: test command: test
args: --lib --bins args: --lib --bins
- name: Run integration tests - name: Run integration tests
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with: