Skip to content

Commit

Permalink
fix: fix pnpm installation.
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinOrange committed Dec 12, 2024
1 parent 7fb582a commit a368935
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ jobs:
with:
node-version: 20
cache: pnpm
- name: Install pnpm
run: npm install pnpm -g
- name: Install
uses: dtolnay/rust-toolchain@stable
if: ${{ !matrix.settings.docker }}
Expand All @@ -118,17 +120,21 @@ jobs:
shell: bash
- name: Setup node x86
if: matrix.settings.target == 'i686-pc-windows-msvc'
run: pnpm config set supportedArchitectures.cpu "ia32"
run: npm config set supportedArchitectures.cpu "ia32"
shell: bash
- name: Install pnpm
run: npm install pnpm -g
- name: Install dependencies
run: pnpm install
run: npm install
- name: Setup node x86
uses: actions/setup-node@v4
if: matrix.settings.target == 'i686-pc-windows-msvc'
with:
node-version: 20
cache: pnpm
architecture: x86
- name: Install pnpm
run: npm install pnpm -g
- name: Build in docker
uses: addnab/docker-run-action@v3
if: ${{ matrix.settings.docker }}
Expand Down Expand Up @@ -217,6 +223,8 @@ jobs:
node-version: ${{ matrix.node }}
cache: pnpm
architecture: x64
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: Download artifacts
Expand Down Expand Up @@ -247,6 +255,8 @@ jobs:
with:
node-version: ${{ matrix.node }}
cache: pnpm
- name: Install pnpm
run: npm install pnpm -g
- name: Install dependencies
run: pnpm install
- name: Download artifacts
Expand Down Expand Up @@ -277,9 +287,11 @@ jobs:
with:
node-version: ${{ matrix.node }}
cache: pnpm
- name: Install pnpm
run: npm install pnpm -g
- name: Install dependencies
run: |
pnpm config set supportedArchitectures.libc "musl"
npm config set supportedArchitectures.libc "musl"
pnpm install
- name: Download artifacts
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -314,8 +326,8 @@ jobs:
shell: bash
- name: Install dependencies
run: |
pnpm config set supportedArchitectures.cpu "arm64"
pnpm config set supportedArchitectures.libc "glibc"
npm config set supportedArchitectures.cpu "arm64"
npm config set supportedArchitectures.libc "glibc"
pnpm install
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -348,8 +360,8 @@ jobs:
shell: bash
- name: Install dependencies
run: |
pnpm config set supportedArchitectures.cpu "arm64"
pnpm config set supportedArchitectures.libc "musl"
npm config set supportedArchitectures.cpu "arm64"
npm config set supportedArchitectures.libc "musl"
pnpm install
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -387,7 +399,7 @@ jobs:
shell: bash
- name: Install dependencies
run: |
pnpm config set supportedArchitectures.cpu "arm"
npm config set supportedArchitectures.cpu "arm"
pnpm install
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -415,6 +427,8 @@ jobs:
with:
node-version: 20
cache: pnpm
- name: Install pnpm
run: npm install pnpm -g
- name: Install dependencies
run: pnpm install
- name: Download macOS x64 artifact
Expand Down Expand Up @@ -454,6 +468,8 @@ jobs:
with:
node-version: 20
cache: pnpm
- name: Install pnpm
run: npm install pnpm -g
- name: Install dependencies
run: pnpm install
- name: Download all artifacts
Expand Down

0 comments on commit a368935

Please sign in to comment.