mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
fix dependency caching
This commit is contained in:
parent
1efbb3266e
commit
6799f098a6
1 changed files with 16 additions and 12 deletions
28
.github/workflows/main.yml
vendored
28
.github/workflows/main.yml
vendored
|
@ -16,28 +16,31 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: install wbg
|
||||
run: cargo install wasm-bindgen-cli
|
||||
- name: Setup Binaryen
|
||||
uses: Aandreba/setup-binaryen@v1.0.0
|
||||
with:
|
||||
token: ${{ github.token }}
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: latest
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "22"
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: install wbg
|
||||
run: cargo install wasm-bindgen-cli
|
||||
|
||||
- name: Setup Binaryen
|
||||
uses: Aandreba/setup-binaryen@v1.0.0
|
||||
with:
|
||||
token: ${{ github.token }}
|
||||
|
||||
- name: Build Rewriter
|
||||
run: RELEASE=1 pnpm rewriter:build
|
||||
|
||||
|
@ -95,19 +98,20 @@ jobs:
|
|||
needs: build
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: latest
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "22"
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue