|
@@ -30,11 +30,9 @@ jobs:
|
|
settings:
|
|
settings:
|
|
- host: macos-latest
|
|
- host: macos-latest
|
|
target: x86_64-apple-darwin
|
|
target: x86_64-apple-darwin
|
|
- build: |
|
|
|
|
- yarn build
|
|
|
|
- strip -x *.node
|
|
|
|
|
|
+ build: yarn build --target x86_64-apple-darwin
|
|
- host: windows-latest
|
|
- host: windows-latest
|
|
- build: yarn build
|
|
|
|
|
|
+ build: yarn build --target x86_64-pc-windows-msvc
|
|
target: x86_64-pc-windows-msvc
|
|
target: x86_64-pc-windows-msvc
|
|
- host: windows-latest
|
|
- host: windows-latest
|
|
build: |
|
|
build: |
|
|
@@ -44,31 +42,18 @@ jobs:
|
|
- host: ubuntu-latest
|
|
- host: ubuntu-latest
|
|
target: x86_64-unknown-linux-gnu
|
|
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: |-
|
|
|
|
- set -e &&
|
|
|
|
- yarn build --target x86_64-unknown-linux-gnu &&
|
|
|
|
- strip *.node
|
|
|
|
|
|
+ build: yarn build --target x86_64-unknown-linux-gnu
|
|
- host: ubuntu-latest
|
|
- host: ubuntu-latest
|
|
target: x86_64-unknown-linux-musl
|
|
target: x86_64-unknown-linux-musl
|
|
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
|
|
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
|
|
- build: set -e && yarn build && strip *.node
|
|
|
|
|
|
+ build: yarn build --target x86_64-unknown-linux-musl
|
|
- host: macos-latest
|
|
- host: macos-latest
|
|
target: aarch64-apple-darwin
|
|
target: aarch64-apple-darwin
|
|
- build: |
|
|
|
|
- sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*;
|
|
|
|
- export CC=$(xcrun -f clang);
|
|
|
|
- export CXX=$(xcrun -f clang++);
|
|
|
|
- SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
|
|
|
|
- export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
|
|
|
|
- yarn build --target aarch64-apple-darwin
|
|
|
|
- strip -x *.node
|
|
|
|
|
|
+ build: yarn build --target aarch64-apple-darwin
|
|
- host: ubuntu-latest
|
|
- host: ubuntu-latest
|
|
target: aarch64-unknown-linux-gnu
|
|
target: aarch64-unknown-linux-gnu
|
|
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
|
|
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
|
|
- build: |-
|
|
|
|
- set -e &&
|
|
|
|
- yarn build --target aarch64-unknown-linux-gnu &&
|
|
|
|
- aarch64-unknown-linux-gnu-strip *.node
|
|
|
|
|
|
+ build: yarn build --target aarch64-unknown-linux-gnu
|
|
- host: ubuntu-latest
|
|
- host: ubuntu-latest
|
|
target: armv7-unknown-linux-gnueabihf
|
|
target: armv7-unknown-linux-gnueabihf
|
|
setup: |
|
|
setup: |
|
|
@@ -76,25 +61,19 @@ jobs:
|
|
sudo apt-get install gcc-arm-linux-gnueabihf -y
|
|
sudo apt-get install gcc-arm-linux-gnueabihf -y
|
|
build: |
|
|
build: |
|
|
yarn build --target armv7-unknown-linux-gnueabihf
|
|
yarn build --target armv7-unknown-linux-gnueabihf
|
|
- arm-linux-gnueabihf-strip *.node
|
|
|
|
- host: ubuntu-latest
|
|
- host: ubuntu-latest
|
|
target: aarch64-linux-android
|
|
target: aarch64-linux-android
|
|
- build: |
|
|
|
|
- yarn build --target aarch64-linux-android
|
|
|
|
- ${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip *.node
|
|
|
|
|
|
+ build: yarn build --target aarch64-linux-android
|
|
- host: ubuntu-latest
|
|
- host: ubuntu-latest
|
|
target: armv7-linux-androideabi
|
|
target: armv7-linux-androideabi
|
|
- build: |
|
|
|
|
- yarn build --target armv7-linux-androideabi
|
|
|
|
- ${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip *.node
|
|
|
|
|
|
+ build: yarn build --target armv7-linux-androideabi
|
|
- host: ubuntu-latest
|
|
- host: ubuntu-latest
|
|
target: aarch64-unknown-linux-musl
|
|
target: aarch64-unknown-linux-musl
|
|
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
|
|
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
|
|
build: |-
|
|
build: |-
|
|
set -e &&
|
|
set -e &&
|
|
rustup target add aarch64-unknown-linux-musl &&
|
|
rustup target add aarch64-unknown-linux-musl &&
|
|
- yarn build --target aarch64-unknown-linux-musl &&
|
|
|
|
- /aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip *.node
|
|
|
|
|
|
+ yarn build --target aarch64-unknown-linux-musl
|
|
- host: windows-latest
|
|
- host: windows-latest
|
|
target: aarch64-pc-windows-msvc
|
|
target: aarch64-pc-windows-msvc
|
|
build: yarn build --target aarch64-pc-windows-msvc
|
|
build: yarn build --target aarch64-pc-windows-msvc
|
|
@@ -106,7 +85,7 @@ jobs:
|
|
uses: actions/setup-node@v4
|
|
uses: actions/setup-node@v4
|
|
if: ${{ !matrix.settings.docker }}
|
|
if: ${{ !matrix.settings.docker }}
|
|
with:
|
|
with:
|
|
- node-version: 18
|
|
|
|
|
|
+ node-version: 20
|
|
cache: yarn
|
|
cache: yarn
|
|
- name: Install
|
|
- name: Install
|
|
uses: dtolnay/rust-toolchain@stable
|
|
uses: dtolnay/rust-toolchain@stable
|
|
@@ -127,7 +106,7 @@ jobs:
|
|
- uses: goto-bus-stop/setup-zig@v2
|
|
- uses: goto-bus-stop/setup-zig@v2
|
|
if: ${{ matrix.settings.target == 'armv7-unknown-linux-gnueabihf' }}
|
|
if: ${{ matrix.settings.target == 'armv7-unknown-linux-gnueabihf' }}
|
|
with:
|
|
with:
|
|
- version: 0.11.0
|
|
|
|
|
|
+ version: 0.12.0
|
|
- name: Setup toolchain
|
|
- name: Setup toolchain
|
|
run: ${{ matrix.settings.setup }}
|
|
run: ${{ matrix.settings.setup }}
|
|
if: ${{ matrix.settings.setup }}
|
|
if: ${{ matrix.settings.setup }}
|
|
@@ -142,7 +121,7 @@ jobs:
|
|
uses: actions/setup-node@v4
|
|
uses: actions/setup-node@v4
|
|
if: matrix.settings.target == 'i686-pc-windows-msvc'
|
|
if: matrix.settings.target == 'i686-pc-windows-msvc'
|
|
with:
|
|
with:
|
|
- node-version: 18
|
|
|
|
|
|
+ node-version: 20
|
|
cache: yarn
|
|
cache: yarn
|
|
architecture: x86
|
|
architecture: x86
|
|
- name: Build in docker
|
|
- name: Build in docker
|
|
@@ -176,7 +155,7 @@ jobs:
|
|
with:
|
|
with:
|
|
operating_system: freebsd
|
|
operating_system: freebsd
|
|
version: '13.2'
|
|
version: '13.2'
|
|
- memory: 13G
|
|
|
|
|
|
+ memory: 8G
|
|
cpu_count: 3
|
|
cpu_count: 3
|
|
environment_variables: 'DEBUG RUSTUP_IO_THREADS'
|
|
environment_variables: 'DEBUG RUSTUP_IO_THREADS'
|
|
shell: bash
|
|
shell: bash
|
|
@@ -218,8 +197,13 @@ jobs:
|
|
settings:
|
|
settings:
|
|
- host: windows-latest
|
|
- host: windows-latest
|
|
target: x86_64-pc-windows-msvc
|
|
target: x86_64-pc-windows-msvc
|
|
|
|
+ architecture: x64
|
|
|
|
+ - host: macos-latest
|
|
|
|
+ target: aarch64-apple-darwin
|
|
|
|
+ architecture: arm64
|
|
- host: macos-latest
|
|
- host: macos-latest
|
|
target: x86_64-apple-darwin
|
|
target: x86_64-apple-darwin
|
|
|
|
+ architecture: x64
|
|
node:
|
|
node:
|
|
- '18'
|
|
- '18'
|
|
- '20'
|
|
- '20'
|
|
@@ -231,6 +215,7 @@ jobs:
|
|
with:
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
node-version: ${{ matrix.node }}
|
|
cache: yarn
|
|
cache: yarn
|
|
|
|
+ architecture: ${{ matrix.settings.architecture }}
|
|
- name: Install dependencies
|
|
- name: Install dependencies
|
|
run: yarn install
|
|
run: yarn install
|
|
- name: Download artifacts
|
|
- name: Download artifacts
|
|
@@ -433,7 +418,7 @@ jobs:
|
|
- name: Setup node
|
|
- name: Setup node
|
|
uses: actions/setup-node@v4
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
with:
|
|
- node-version: 18
|
|
|
|
|
|
+ node-version: 20
|
|
cache: yarn
|
|
cache: yarn
|
|
- name: Install dependencies
|
|
- name: Install dependencies
|
|
run: yarn install
|
|
run: yarn install
|