Skip to content

Commit

Permalink
编译依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
SOVLOOKUP committed Sep 30, 2023
1 parent ce8d034 commit 87b18ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,17 @@ jobs:
target: i686-pc-windows-msvc
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
# docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
build: |-
sudo apt-get update &&
sudo apt-get install pkg-config -y &&
set -e &&
pnpm 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 build && strip *.node
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: apk update && apk add pkgconfig && set -e && pnpm build && strip *.node
- host: macos-latest
target: aarch64-apple-darwin
build: |
Expand Down
2 changes: 1 addition & 1 deletion addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"scripts": {
"artifacts": "napi artifacts",
"build": "napi build --platform --release",
"build": "PKG_CONFIG_SYSROOT_DIR=/ napi build --platform --release",
"build:debug": "napi build --platform",
"prepublishOnly": "napi prepublish -t npm",
"universal": "napi universal",
Expand Down

0 comments on commit 87b18ba

Please sign in to comment.