Skip to content

Commit

Permalink
💚 fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitthi committed Dec 1, 2023
1 parent ac34799 commit f425399
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,17 @@ jobs:
build: |
npx pnpm build
strip -x *.node
strip -x *.ts
strip -x *.js
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
build: |-
set -e &&
npx pnpm build --target x86_64-unknown-linux-gnu &&
strip *.node
strip -x *.ts
strip -x *.js
- host: ubuntu-latest
target: x86_64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: set -e && npx pnpm build &&
strip *.node
strip -x *.ts
strip -x *.js
build: set -e && npx pnpm build && strip *.node
- host: macos-latest
target: aarch64-apple-darwin
build: |
Expand All @@ -57,17 +50,13 @@ jobs:
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
npx pnpm build --target aarch64-apple-darwin
strip -x *.node
strip -x *.ts
strip -x *.js
- host: ubuntu-latest
target: aarch64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
build: |-
set -e &&
npx pnpm build --target aarch64-unknown-linux-gnu &&
aarch64-unknown-linux-gnu-strip *.node
aarch64-unknown-linux-gnu-strip -x *.ts
aarch64-unknown-linux-gnu-strip -x *.js
- host: ubuntu-latest
target: armv7-unknown-linux-gnueabihf
setup: |
Expand All @@ -76,8 +65,6 @@ jobs:
build: |
npx pnpm build --target armv7-unknown-linux-gnueabihf
arm-linux-gnueabihf-strip *.node
arm-linux-gnueabihf-strip -x *.ts
arm-linux-gnueabihf-strip -x *.js
- host: ubuntu-latest
target: aarch64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
Expand All @@ -86,8 +73,6 @@ jobs:
rustup target add aarch64-unknown-linux-musl &&
npx pnpm build --target aarch64-unknown-linux-musl &&
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip *.node
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip -x *.ts
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip -x *.js
name: stable - ${{ matrix.settings.target }} - node@18
runs-on: ${{ matrix.settings.host }}
steps:
Expand Down Expand Up @@ -142,6 +127,18 @@ jobs:
name: bindings-${{ matrix.settings.target }}
path: ${{ env.APP_NAME }}.*.node
if-no-files-found: error
- name: Upload artifact index.js
uses: actions/upload-artifact@v3
with:
name: bindings-${{ matrix.settings.target }}
path: index.js
if-no-files-found: error
- name: Upload artifact index.d.ts
uses: actions/upload-artifact@v3
with:
name: bindings-${{ matrix.settings.target }}
path: index.d.ts
if-no-files-found: error
publish:
name: Publish
runs-on: ubuntu-latest
Expand Down Expand Up @@ -169,11 +166,14 @@ jobs:
- name: List Dir
run: ls -la
shell: bash
# - name: Publish
# run: |
# echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
# # npm publish --access public
# npx pnpm run publish:all
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: List artifacts
run: ls -la artifacts
shell: bash
- name: Publish
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
# npm publish --access public
npx pnpm run publish:all
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f425399

Please sign in to comment.