Skip to content

Commit

Permalink
ci: fix Node cache path in NAPI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix-ru committed Nov 27, 2023
1 parent f10233e commit a5e6daf
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/napi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ jobs:
with:
node-version: 18
cache: yarn
- name: Install
cache-dependency-path: ${{ env.WORKING_DIR }}/yarn.lock
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
if: ${{ !matrix.settings.docker }}
with:
Expand Down Expand Up @@ -88,14 +89,15 @@ jobs:
run: yarn config set supportedArchitectures.cpu "ia32"
shell: bash
- name: Install dependencies
run: yarn install
run: corepack enable; yarn install
- name: Setup node x86
uses: actions/setup-node@v4
if: matrix.settings.target == 'i686-pc-windows-msvc'
with:
node-version: 18
cache: yarn
architecture: x86
cache-dependency-path: ${{ env.WORKING_DIR }}/yarn.lock
- name: Build in docker
uses: addnab/docker-run-action@v3
if: ${{ matrix.settings.docker }}
Expand Down Expand Up @@ -139,8 +141,9 @@ jobs:
with:
node-version: ${{ matrix.node }}
cache: yarn
cache-dependency-path: ${{ env.WORKING_DIR }}/yarn.lock
- name: Install dependencies
run: yarn install
run: corepack enable; yarn install
- name: Download artifacts
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -172,8 +175,9 @@ jobs:
with:
node-version: ${{ matrix.node }}
cache: yarn
cache-dependency-path: ${{ env.WORKING_DIR }}/yarn.lock
- name: Install dependencies
run: yarn install
run: corepack enable; yarn install
- name: Download artifacts
uses: actions/download-artifact@v3
with:
Expand All @@ -200,8 +204,9 @@ jobs:
with:
node-version: 18
cache: yarn
cache-dependency-path: ${{ env.WORKING_DIR }}/yarn.lock
- name: Install dependencies
run: yarn install
run: corepack enable; yarn install
- name: Download all artifacts
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit a5e6daf

Please sign in to comment.