This repository has been archived by the owner on Sep 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5e6555
commit 1e07b47
Showing
1 changed file
with
77 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,22 +36,22 @@ jobs: | |
- host: windows-latest | ||
build: yarn build | ||
target: x86_64-pc-windows-msvc | ||
- host: windows-latest | ||
build: | | ||
yarn build --target i686-pc-windows-msvc | ||
yarn test | ||
target: i686-pc-windows-msvc | ||
# - host: windows-latest | ||
# build: | | ||
# yarn build --target i686-pc-windows-msvc | ||
# yarn test | ||
# 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 | ||
build: |- | ||
set -e && | ||
yarn 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 && yarn build && 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 && yarn build && strip *.node | ||
- host: macos-latest | ||
target: aarch64-apple-darwin | ||
build: | | ||
|
@@ -69,24 +69,24 @@ jobs: | |
set -e && | ||
yarn build --target aarch64-unknown-linux-gnu && | ||
aarch64-unknown-linux-gnu-strip *.node | ||
- host: ubuntu-latest | ||
target: armv7-unknown-linux-gnueabihf | ||
setup: | | ||
sudo apt-get update | ||
sudo apt-get install gcc-arm-linux-gnueabihf -y | ||
build: | | ||
yarn build --target armv7-unknown-linux-gnueabihf | ||
arm-linux-gnueabihf-strip *.node | ||
- host: ubuntu-latest | ||
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 | ||
- host: ubuntu-latest | ||
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 | ||
# - host: ubuntu-latest | ||
# target: armv7-unknown-linux-gnueabihf | ||
# setup: | | ||
# sudo apt-get update | ||
# sudo apt-get install gcc-arm-linux-gnueabihf -y | ||
# build: | | ||
# yarn build --target armv7-unknown-linux-gnueabihf | ||
# arm-linux-gnueabihf-strip *.node | ||
# - host: ubuntu-latest | ||
# 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 | ||
# - host: ubuntu-latest | ||
# 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 | ||
- host: ubuntu-latest | ||
target: aarch64-unknown-linux-musl | ||
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine | ||
|
@@ -163,52 +163,52 @@ jobs: | |
name: bindings-${{ matrix.settings.target }} | ||
path: ${{ env.APP_NAME }}.*.node | ||
if-no-files-found: error | ||
build-freebsd: | ||
runs-on: macos-13 | ||
name: Build FreeBSD | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
id: build | ||
uses: cross-platform-actions/[email protected] | ||
env: | ||
DEBUG: napi:* | ||
RUSTUP_IO_THREADS: 1 | ||
with: | ||
operating_system: freebsd | ||
version: "13.2" | ||
memory: 13G | ||
cpu_count: 3 | ||
environment_variables: "DEBUG RUSTUP_IO_THREADS" | ||
shell: bash | ||
run: | | ||
sudo pkg install -y -f curl node libnghttp2 npm | ||
sudo npm install -g yarn --ignore-scripts | ||
curl https://sh.rustup.rs -sSf --output rustup.sh | ||
sh rustup.sh -y --profile minimal --default-toolchain beta | ||
source "$HOME/.cargo/env" | ||
echo "~~~~ rustc --version ~~~~" | ||
rustc --version | ||
echo "~~~~ node -v ~~~~" | ||
node -v | ||
echo "~~~~ yarn --version ~~~~" | ||
yarn --version | ||
pwd | ||
ls -lah | ||
whoami | ||
env | ||
freebsd-version | ||
yarn install | ||
yarn build | ||
rm -rf node_modules | ||
rm -rf target | ||
rm -rf .yarn/cache | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: bindings-freebsd | ||
path: ${{ env.APP_NAME }}.*.node | ||
if-no-files-found: error | ||
# build-freebsd: | ||
# runs-on: macos-13 | ||
# name: Build FreeBSD | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Build | ||
# id: build | ||
# uses: cross-platform-actions/[email protected] | ||
# env: | ||
# DEBUG: napi:* | ||
# RUSTUP_IO_THREADS: 1 | ||
# with: | ||
# operating_system: freebsd | ||
# version: "13.2" | ||
# memory: 13G | ||
# cpu_count: 3 | ||
# environment_variables: "DEBUG RUSTUP_IO_THREADS" | ||
# shell: bash | ||
# run: | | ||
# sudo pkg install -y -f curl node libnghttp2 npm | ||
# sudo npm install -g yarn --ignore-scripts | ||
# curl https://sh.rustup.rs -sSf --output rustup.sh | ||
# sh rustup.sh -y --profile minimal --default-toolchain beta | ||
# source "$HOME/.cargo/env" | ||
# echo "~~~~ rustc --version ~~~~" | ||
# rustc --version | ||
# echo "~~~~ node -v ~~~~" | ||
# node -v | ||
# echo "~~~~ yarn --version ~~~~" | ||
# yarn --version | ||
# pwd | ||
# ls -lah | ||
# whoami | ||
# env | ||
# freebsd-version | ||
# yarn install | ||
# yarn build | ||
# rm -rf node_modules | ||
# rm -rf target | ||
# rm -rf .yarn/cache | ||
# - name: Upload artifact | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: bindings-freebsd | ||
# path: ${{ env.APP_NAME }}.*.node | ||
# if-no-files-found: error | ||
test-macOS-windows-binding: | ||
name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }} | ||
needs: | ||
|
@@ -422,13 +422,13 @@ jobs: | |
name: Publish | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build-freebsd | ||
# - build-freebsd | ||
- test-macOS-windows-binding | ||
- test-linux-x64-gnu-binding | ||
- test-linux-x64-musl-binding | ||
# - test-linux-x64-musl-binding | ||
- test-linux-aarch64-gnu-binding | ||
- test-linux-aarch64-musl-binding | ||
- test-linux-arm-gnueabihf-binding | ||
# - test-linux-aarch64-musl-binding | ||
# - test-linux-arm-gnueabihf-binding | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup node | ||
|