From 15a6f8804126d8319f5cbd58bc30e239067996e2 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Sun, 29 Jun 2025 14:09:53 +0200 Subject: [PATCH] chore: add caching of downloaded modules --- .forgejo/workflows/semver.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.forgejo/workflows/semver.yaml b/.forgejo/workflows/semver.yaml index cc0a6d9..920b301 100644 --- a/.forgejo/workflows/semver.yaml +++ b/.forgejo/workflows/semver.yaml @@ -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: