Skip to content

Commit

Permalink
Merge pull request #12 from Aitthi/main
Browse files Browse the repository at this point in the history
release
  • Loading branch information
Aitthi authored Dec 1, 2023
2 parents 47d6b4a + 49fd2b4 commit c03f032
Showing 1 changed file with 57 additions and 57 deletions.
114 changes: 57 additions & 57 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,55 +24,55 @@ jobs:
fail-fast: false
matrix:
settings:
# - host: macos-latest
# target: x86_64-apple-darwin
# build: |
# pnpm build
# strip -x *.node
- host: macos-latest
target: x86_64-apple-darwin
build: |
pnpm build
strip -x *.node
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
build: |-
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
# - host: macos-latest
# 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";
# pnpm build --target aarch64-apple-darwin
# strip -x *.node
# - host: ubuntu-latest
# target: aarch64-unknown-linux-gnu
# docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
# build: |-
# set -e &&
# pnpm 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: |
# 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: |-
# set -e &&
# rustup target add aarch64-unknown-linux-musl &&
# pnpm build --target aarch64-unknown-linux-musl &&
# /aarch64-linux-musl-cross/bin/aarch64-linux-musl-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
- host: macos-latest
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";
pnpm build --target aarch64-apple-darwin
strip -x *.node
- host: ubuntu-latest
target: aarch64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
build: |-
set -e &&
pnpm 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: |
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: |-
set -e &&
rustup target add aarch64-unknown-linux-musl &&
pnpm build --target aarch64-unknown-linux-musl &&
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip *.node
name: stable - ${{ matrix.settings.target }} - node@18
runs-on: ${{ matrix.settings.host }}
steps:
Expand Down Expand Up @@ -121,12 +121,12 @@ jobs:
run: ${{ matrix.settings.build }}
if: ${{ !matrix.settings.docker }}
shell: bash
# - name: Upload artifact
# uses: actions/upload-artifact@v3
# with:
# name: bindings-${{ matrix.settings.target }}
# path: ${{ env.APP_NAME }}.*.node
# if-no-files-found: error
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: bindings-${{ matrix.settings.target }}
path: ${{ env.APP_NAME }}.*.node
if-no-files-found: error
publish:
name: Publish
runs-on: ubuntu-latest
Expand All @@ -147,18 +147,18 @@ jobs:
with:
path: artifacts
- name: Move artifacts
run: pnpm artifacts
run: npx pnpm artifacts
- name: List packages
run: ls -R ./npm
shell: bash
- name: List packages
run: ls -la
shell: bash
# - name: Publish
# run: |
# echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
# # npm publish --access public
# pnpm run publish:all
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
# npm publish --access public
pnpm run publish:all
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c03f032

Please sign in to comment.