Skip to content

Commit

Permalink
Cache Rust dependencies slightly better
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Aug 10, 2024
1 parent b66d6bd commit 97736cb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,13 @@ jobs:
- name: Install wasm-pack
uses: jetli/[email protected]

- name: Cache WASM build
- name: Cache WASM build (for @uatp/template test)
if: ${{ matrix.packages.name == '@uatp/template' }}
uses: actions/cache@v3
with:
path: packages/create-web/template/rust_backend/target
key: rust_backend
key: rust_backend-${{ hashFiles('**/Cargo.lock') }}
restore-keys: rust_backend

- name: Install dependencies for all packages
run: pnpm install
Expand Down Expand Up @@ -143,7 +145,8 @@ jobs:
uses: actions/cache@v3
with:
path: packages/create-web/template/rust_backend/target
key: rust_backend
key: rust_backend-${{ hashFiles('**/Cargo.lock') }}
restore-keys: rust_backend

- name: Build template for publishing
working-directory: packages/create-web/template/web
Expand Down

0 comments on commit 97736cb

Please sign in to comment.