Skip to content

Commit

Permalink
Merge pull request #19 from Aitthi/main
Browse files Browse the repository at this point in the history
💚 strip file
  • Loading branch information
Aitthi authored Dec 1, 2023
2 parents 45dc899 + ac34799 commit ea941e6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
35 changes: 25 additions & 10 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,24 @@ 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
build: set -e && npx pnpm build &&
strip *.node
strip -x *.ts
strip -x *.js
- host: macos-latest
target: aarch64-apple-darwin
build: |
Expand All @@ -50,13 +57,17 @@ 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 @@ -65,6 +76,8 @@ 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 @@ -73,6 +86,8 @@ 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 @@ -151,14 +166,14 @@ jobs:
- name: List packages
run: ls -R ./npm
shell: bash
- name: List packages
- 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: 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 }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nylon-rs",
"version": "2.0.0",
"version": "2.0.1",
"description": "Nylon is a web framework for Node.js built with Tokio, Tower, Hyper, and Napi-rs",
"main": "index.js",
"repository": "https://github.com/Aitthi/nylon",
Expand Down

0 comments on commit ea941e6

Please sign in to comment.