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 2c108c5 commit baf762a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ jobs:
target: x86_64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
build: |-
PKG_CONFIG_SYSROOT_DIR=/
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
build: PKG_CONFIG_SYSROOT_DIR=/ && set -e && pnpm build && strip *.node
- host: macos-latest
target: aarch64-apple-darwin
build: |
Expand All @@ -60,6 +61,7 @@ jobs:
target: aarch64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
build: |-
PKG_CONFIG_SYSROOT_DIR=/
set -e &&
pnpm build --target aarch64-unknown-linux-gnu &&
aarch64-unknown-linux-gnu-strip *.node
Expand All @@ -69,12 +71,14 @@ jobs:
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf -y
build: |
PKG_CONFIG_SYSROOT_DIR=/
pnpm build --target armv7-unknown-linux-gnueabihf
arm-linux-gnueabihf-strip *.node
- host: ubuntu-latest
target: aarch64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: |-
PKG_CONFIG_SYSROOT_DIR=/
set -e &&
rustup target add aarch64-unknown-linux-musl &&
pnpm build --target aarch64-unknown-linux-musl &&
Expand All @@ -96,11 +100,11 @@ jobs:
check-latest: true
version: 8
run_install: false
- name: Install compile dependencies
if: ${{ matrix.settings.host == 'ubuntu-latest' }}
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev
# - name: Install compile dependencies
# if: ${{ matrix.settings.host == 'ubuntu-latest' }}
# run: |
# sudo apt-get update
# sudo apt-get install build-essential libgtk-3-dev pkg-config -y
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
if: ${{ !matrix.settings.docker }}
Expand Down

0 comments on commit baf762a

Please sign in to comment.