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 e2baaea commit d10c322
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,18 @@ jobs:
- name: Install wasm-pack
uses: jetli/[email protected]

- name: Cache WASM build
- name: Generate Cargo.lock file (for @uatp/template test)
if: ${{ matrix.packages.name == '@uatp/template' }}
working-directory: ${{ matrix.packages.directory }}/../rust_backend
run: cargo generate-lockfile

- 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 @@ -145,7 +152,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 d10c322

Please sign in to comment.