ci: add cache to CI/CD

This commit is contained in:
rzmk 2025-04-18 11:05:08 -04:00
parent 36883cafa2
commit ca5bc328fc
No known key found for this signature in database

View file

@ -37,6 +37,11 @@ jobs:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds. # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: Cache cargo deps and target folder
uses: Swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
- name: install dependencies (ubuntu only) - name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above. if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
run: | run: |