Skip to content

Commit b6307cf

Browse files
author
Dario
committed
ci: add cargo cache for faster builds
1 parent 601398f commit b6307cf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414
- uses: dtolnay/rust-toolchain@stable
15+
- uses: Swatinem/rust-cache@v2
1516
- name: Check formatting
1617
run: cargo fmt --check
1718
- name: Clippy
@@ -36,6 +37,9 @@ jobs:
3637
- uses: dtolnay/rust-toolchain@stable
3738
with:
3839
targets: ${{ matrix.target }}
40+
- uses: Swatinem/rust-cache@v2
41+
with:
42+
cache-on-failure: true
3943
- name: Build
4044
run: cargo build --release --target ${{ matrix.target }}
4145
- name: Upload binary

0 commit comments

Comments
 (0)