cargo build caching
All checks were successful
Build / Build (push) Successful in 20m23s

This commit is contained in:
Silas Bartha 2025-03-16 20:06:51 -04:00
parent 0aa4913f91
commit 14b99480df
Signed by: soaos
GPG Key ID: 9BD3DCC0D56A09B2

View File

@ -9,7 +9,9 @@ jobs:
run: apk add nodejs gcc libc-dev pkgconf libx11-dev alsa-lib-dev eudev-dev tar
- name: Check out repository code
uses: actions/checkout@v4
- uses: actions/cache@v4
- name: Restore cache
id: restore-cache
uses: actions/cache/restore@v4
with:
path: |
~/.cargo/bin/
@ -20,3 +22,13 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build --release
- name: Save cache
uses: actions/cache/save@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ steps.restore-cache.outputs.cache-primary-key }}