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 ed516c9 commit bc8b53e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 37 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,11 @@ jobs:
sudo apt-get update &&
sudo apt-get install uuid-dev libc-dev pkg-config libglib2.0-dev libgtk-3-dev gcc-arm-linux-gnueabihf libgtk2.0-dev libpango1.0-dev libcairo2-dev libfontconfig1-dev -y &&
set -e &&
pnpm build --target x86_64-unknown-linux-gnu &&
strip *.node
pnpm build --target x86_64-unknown-linux-gnu
- host: ubuntu-20.04
target: x86_64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: apk update && apk add libuuid libc-dev pkgconfig glib-dev gtk+3.0-dev pango-dev cairo fontconfig && set -e && pnpm build && strip *.node
build: apk update && apk add libuuid libc-dev pkgconfig glib-dev gtk+3.0-dev pango-dev cairo fontconfig && set -e && pnpm build
- host: macos-latest
target: aarch64-apple-darwin
build: |
Expand All @@ -65,25 +64,23 @@ jobs:
sudo apt-get update &&
sudo apt-get install uuid-dev libc-dev pkg-config libglib2.0-dev libgtk-3-dev gcc-arm-linux-gnueabihf libgtk2.0-dev libpango1.0-dev libcairo2-dev libfontconfig1-dev -y &&
set -e &&
PKG_CONFIG_SYSROOT_DIR=/ pnpm build --target aarch64-unknown-linux-gnu &&
aarch64-unknown-linux-gnu-strip *.node
- host: ubuntu-20.04
target: armv7-unknown-linux-gnueabihf
setup: |
sudo apt-get update
sudo apt-get install uuid-dev libc-dev pkg-config libglib2.0-dev libgtk-3-dev gcc-arm-linux-gnueabihf libgtk2.0-dev libpango1.0-dev libcairo2-dev libfontconfig1-dev -y
build: |
PKG_CONFIG_SYSROOT_DIR=/ pnpm build --target armv7-unknown-linux-gnueabihf
arm-linux-gnueabihf-strip *.node
PKG_CONFIG_SYSROOT_DIR=/ pnpm build --target aarch64-unknown-linux-gnu
# - host: ubuntu-20.04
# target: armv7-unknown-linux-gnueabihf
# setup: |
# sudo apt-get update
# sudo apt-get install uuid-dev libc-dev pkg-config libglib2.0-dev libgtk-3-dev gcc-arm-linux-gnueabihf libgtk2.0-dev libpango1.0-dev libcairo2-dev libfontconfig1-dev -y
# build: |
# PKG_CONFIG_SYSROOT_DIR=/ pnpm build --target armv7-unknown-linux-gnueabihf
# arm-linux-gnueabihf-strip *.node
- host: ubuntu-20.04
target: aarch64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: |-
apk update && apk add libuuid libc-dev pkgconfig glib-dev gtk+3.0-dev pango-dev cairo fontconfig &&
set -e &&
rustup target add aarch64-unknown-linux-musl &&
PKG_CONFIG_SYSROOT_DIR=/ pnpm build --target aarch64-unknown-linux-musl &&
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip *.node
PKG_CONFIG_SYSROOT_DIR=/ pnpm build --target aarch64-unknown-linux-musl
- host: windows-latest
target: aarch64-pc-windows-msvc
build: pnpm build --target aarch64-pc-windows-msvc
Expand Down
3 changes: 0 additions & 3 deletions addon/npm/linux-arm-gnueabihf/README.md

This file was deleted.

18 changes: 0 additions & 18 deletions addon/npm/linux-arm-gnueabihf/package.json

This file was deleted.

1 change: 0 additions & 1 deletion addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc",
"armv7-unknown-linux-gnueabihf",
"x86_64-unknown-linux-musl",
"i686-pc-windows-msvc",
"universal-apple-darwin"
Expand Down

0 comments on commit bc8b53e

Please sign in to comment.