chore: add caching of downloaded modules
All checks were successful
/ check (push) Successful in 1m51s
/ cargo fmt (push) Successful in 1m38s
/ release (push) Successful in 2m34s
Release / release (push) Successful in 9m58s

This commit is contained in:
Guilhem Lavaux 2025-06-29 14:09:53 +02:00
parent 1d86019401
commit 15a6f88041

View file

@ -11,6 +11,25 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: https://git.aquila-consortium.org/guilhem_lavaux/setup-rust-toolchain-forge@v1.12.0-forge
- name: Cache Cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Cache npm dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install
- run: npm run release
env: