Skip to content

Commit

Permalink
Merge pull request #144 from web-infra-dev/fix/release-ci
Browse files Browse the repository at this point in the history
fix(CI): enable corepack in docker
  • Loading branch information
Asuka109 authored Jul 11, 2023
2 parents fb5dfd3 + d2dfd89 commit 52b5866
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-donuts-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@modern-js/swc-plugins": patch
---

fix(CI): enable corepack in docker
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ jobs:
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
build: |-
set -e &&
corepack enable &&
pnpm run build --target x86_64-unknown-linux-gnu &&
strip *.node
- host: ubuntu-latest
target: x86_64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: set -e && pnpm run build && strip *.node
build: set -e && corepack enable && pnpm run build && strip *.node
- host: macos-latest
target: aarch64-apple-darwin
build: |
Expand All @@ -41,7 +42,8 @@ jobs:
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
build: |-
set -e &&
rustup target add aarch64-unknown-linux-gnu
rustup target add aarch64-unknown-linux-gnu &&
corepack enable &&
pnpm run build --target aarch64-unknown-linux-gnu &&
aarch64-unknown-linux-gnu-strip *.node
# - host: ubuntu-latest
Expand All @@ -58,6 +60,7 @@ jobs:
build: |-
set -e &&
rustup target add aarch64-unknown-linux-musl &&
corepack enable &&
pnpm run build --target aarch64-unknown-linux-musl &&
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip *.node
- host: windows-latest
Expand Down

0 comments on commit 52b5866

Please sign in to comment.