From d7334e8fb2ded478d4fb7b3bc257cde367a58c5d Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Thu, 30 Nov 2023 17:35:58 +0800 Subject: [PATCH 01/11] fix: ci --- .github/workflows/release.yml | 29 ++++++++++++++++++- .../npm/darwin-arm64/package.json | 2 +- .../npm/darwin-universal/README.md | 3 ++ .../npm/darwin-universal/package.json | 18 ++++++++++++ .../node_binding/npm/darwin-x64/package.json | 2 +- .../npm/linux-x64-gnu/package.json | 2 +- .../node_binding/npm/linux-x64-musl/README.md | 3 ++ .../npm/linux-x64-musl/package.json | 24 +++++++++++++++ .../npm/win32-arm64-msvc/README.md | 3 ++ .../npm/win32-arm64-msvc/package.json | 21 ++++++++++++++ crates/node_binding/package.json | 6 +++- 11 files changed, 108 insertions(+), 5 deletions(-) create mode 100644 crates/node_binding/npm/darwin-universal/README.md create mode 100644 crates/node_binding/npm/darwin-universal/package.json create mode 100644 crates/node_binding/npm/linux-x64-musl/README.md create mode 100644 crates/node_binding/npm/linux-x64-musl/package.json create mode 100644 crates/node_binding/npm/win32-arm64-msvc/README.md create mode 100644 crates/node_binding/npm/win32-arm64-msvc/package.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a21c1b0..c78bdb2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -105,11 +105,38 @@ jobs: name: bindings-${{ matrix.settings.target }} path: crates/node_binding/${{ env.APP_NAME }}.*.node if-no-files-found: error + universal-macOS: + name: Build universal macOS binary + needs: + - build + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + - name: Pnpm Cache # Required by some tests + uses: ./.github/actions/pnpm-cache + - name: Download macOS x64 artifact + uses: actions/download-artifact@v3 + with: + name: bindings-x86_64-apple-darwin + path: crates/node_binding/artifact/ + - name: Download macOS arm64 artifact + uses: actions/download-artifact@v3 + with: + name: bindings-aarch64-apple-darwin + path: crates/node_binding/artifact/ + - name: Combine binaries + run: cd crates/node_binding && pnpm universal + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: bindings-universal-apple-darwin + path: crates/node_binding/${{ env.APP_NAME }}.*.node + if-no-files-found: error publish: name: Publish runs-on: ubuntu-latest needs: - - build + - universal-macOS steps: - uses: actions/checkout@v4 - name: Pnpm Cache # Required by some tests diff --git a/crates/node_binding/npm/darwin-arm64/package.json b/crates/node_binding/npm/darwin-arm64/package.json index 272a590..e53a1a4 100644 --- a/crates/node_binding/npm/darwin-arm64/package.json +++ b/crates/node_binding/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@ice/pack-binding-darwin-arm64", - "version": "0.0.0", + "version": "0.0.1", "os": [ "darwin" ], diff --git a/crates/node_binding/npm/darwin-universal/README.md b/crates/node_binding/npm/darwin-universal/README.md new file mode 100644 index 0000000..6935816 --- /dev/null +++ b/crates/node_binding/npm/darwin-universal/README.md @@ -0,0 +1,3 @@ +# `@ice/pack-binding-darwin-universal` + +This is the **universal-apple-darwin** binary for `@ice/pack-binding` \ No newline at end of file diff --git a/crates/node_binding/npm/darwin-universal/package.json b/crates/node_binding/npm/darwin-universal/package.json new file mode 100644 index 0000000..45d2b15 --- /dev/null +++ b/crates/node_binding/npm/darwin-universal/package.json @@ -0,0 +1,18 @@ +{ + "name": "@ice/pack-binding-darwin-universal", + "version": "0.0.1", + "os": [ + "darwin" + ], + "main": "pack-binding.darwin-universal.node", + "files": [ + "pack-binding.darwin-universal.node" + ], + "license": "MIT", + "engines": { + "node": ">= 10" + }, + "repository": { + "url": "https://github.com/ice-lab/awesome-ice" + } +} \ No newline at end of file diff --git a/crates/node_binding/npm/darwin-x64/package.json b/crates/node_binding/npm/darwin-x64/package.json index 866c8a6..e0bc47c 100644 --- a/crates/node_binding/npm/darwin-x64/package.json +++ b/crates/node_binding/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@ice/pack-binding-darwin-x64", - "version": "0.0.0", + "version": "0.0.1", "os": [ "darwin" ], diff --git a/crates/node_binding/npm/linux-x64-gnu/package.json b/crates/node_binding/npm/linux-x64-gnu/package.json index 23d2266..c649831 100644 --- a/crates/node_binding/npm/linux-x64-gnu/package.json +++ b/crates/node_binding/npm/linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@ice/pack-binding-linux-x64-gnu", - "version": "0.0.0", + "version": "0.0.1", "os": [ "linux" ], diff --git a/crates/node_binding/npm/linux-x64-musl/README.md b/crates/node_binding/npm/linux-x64-musl/README.md new file mode 100644 index 0000000..6cee88e --- /dev/null +++ b/crates/node_binding/npm/linux-x64-musl/README.md @@ -0,0 +1,3 @@ +# `@ice/pack-binding-linux-x64-musl` + +This is the **x86_64-unknown-linux-musl** binary for `@ice/pack-binding` diff --git a/crates/node_binding/npm/linux-x64-musl/package.json b/crates/node_binding/npm/linux-x64-musl/package.json new file mode 100644 index 0000000..78b14b7 --- /dev/null +++ b/crates/node_binding/npm/linux-x64-musl/package.json @@ -0,0 +1,24 @@ +{ + "name": "@ice/pack-binding-linux-x64-musl", + "version": "0.0.1", + "os": [ + "linux" + ], + "cpu": [ + "x64" + ], + "main": "pack-binding.linux-x64-musl.node", + "files": [ + "pack-binding.linux-x64-musl.node" + ], + "license": "MIT", + "engines": { + "node": ">= 10" + }, + "libc": [ + "musl" + ], + "repository": { + "url": "https://github.com/ice-lab/awesome-ice" + } +} \ No newline at end of file diff --git a/crates/node_binding/npm/win32-arm64-msvc/README.md b/crates/node_binding/npm/win32-arm64-msvc/README.md new file mode 100644 index 0000000..74961fc --- /dev/null +++ b/crates/node_binding/npm/win32-arm64-msvc/README.md @@ -0,0 +1,3 @@ +# `@ice/pack-binding-win32-arm64-msvc` + +This is the **aarch64-pc-windows-msvc** binary for `@ice/pack-binding` diff --git a/crates/node_binding/npm/win32-arm64-msvc/package.json b/crates/node_binding/npm/win32-arm64-msvc/package.json new file mode 100644 index 0000000..1eb8b21 --- /dev/null +++ b/crates/node_binding/npm/win32-arm64-msvc/package.json @@ -0,0 +1,21 @@ +{ + "name": "@ice/pack-binding-win32-arm64-msvc", + "version": "0.0.1", + "os": [ + "win32" + ], + "cpu": [ + "arm64" + ], + "main": "pack-binding.win32-arm64-msvc.node", + "files": [ + "pack-binding.win32-arm64-msvc.node" + ], + "license": "MIT", + "engines": { + "node": ">= 10" + }, + "repository": { + "url": "https://github.com/ice-lab/awesome-ice" + } +} \ No newline at end of file diff --git a/crates/node_binding/package.json b/crates/node_binding/package.json index 0f12da4..c49a3b7 100644 --- a/crates/node_binding/package.json +++ b/crates/node_binding/package.json @@ -7,7 +7,10 @@ "name": "pack-binding", "triples": { "additional": [ - "aarch64-apple-darwin" + "aarch64-apple-darwin", + "aarch64-pc-windows-msvc", + "x86_64-unknown-linux-musl", + "universal-apple-darwin" ] } }, @@ -27,6 +30,7 @@ "build:debug": "napi build --platform", "build:debug:aarch64": "napi build --platform --target aarch64-apple-darwin", "prepublishOnly": "napi prepublish -t npm", + "universal": "napi universal", "version": "napi version" } } \ No newline at end of file From f69a2b2042fe466e47276ff418176e22579e1640 Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Thu, 30 Nov 2023 17:38:15 +0800 Subject: [PATCH 02/11] fix: ci --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c78bdb2..d243f0a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ permissions: on: push: branches: - - master + - fix/universal-ci tags-ignore: - '**' paths-ignore: From e88f9d7901359494cceb4c2aeb0077ab05201909 Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Thu, 30 Nov 2023 17:55:05 +0800 Subject: [PATCH 03/11] fix: ci --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d243f0a..5468b1d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -118,12 +118,12 @@ jobs: uses: actions/download-artifact@v3 with: name: bindings-x86_64-apple-darwin - path: crates/node_binding/artifact/ + path: crates/node_binding/ - name: Download macOS arm64 artifact uses: actions/download-artifact@v3 with: name: bindings-aarch64-apple-darwin - path: crates/node_binding/artifact/ + path: crates/node_binding/ - name: Combine binaries run: cd crates/node_binding && pnpm universal - name: Upload artifact From 8dd77a7adb744796ebe997ad3e7ed88a887881aa Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Thu, 30 Nov 2023 18:54:22 +0800 Subject: [PATCH 04/11] fix: ci --- .github/workflows/release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5468b1d..aa12b84 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -117,13 +117,11 @@ jobs: - name: Download macOS x64 artifact uses: actions/download-artifact@v3 with: - name: bindings-x86_64-apple-darwin - path: crates/node_binding/ + path: crates/node_binding/artifacts - name: Download macOS arm64 artifact uses: actions/download-artifact@v3 with: - name: bindings-aarch64-apple-darwin - path: crates/node_binding/ + path: crates/node_binding/artifacts - name: Combine binaries run: cd crates/node_binding && pnpm universal - name: Upload artifact From b3647729ddc8b690508f60b9f1868b6ccae2d0ca Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Thu, 30 Nov 2023 19:13:46 +0800 Subject: [PATCH 05/11] fix: ci --- .github/workflows/release.yml | 40 ++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa12b84..fdab148 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,31 +30,31 @@ jobs: cd crates/node_binding pnpm build strip -x *.node - - host: windows-latest - build: cd crates/node_binding && pnpm build - target: x86_64-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 && - cd crates/node_binding && - unset CC_x86_64_unknown_linux_gnu && unset CC && - 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: cd crates/node_binding && set -e && pnpm build && strip *.node + # - host: windows-latest + # build: cd crates/node_binding && pnpm build + # target: x86_64-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 && + # cd crates/node_binding && + # unset CC_x86_64_unknown_linux_gnu && unset CC && + # 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: cd crates/node_binding && set -e && pnpm build && strip *.node - host: macos-latest target: aarch64-apple-darwin build: | cd crates/node_binding pnpm build --target aarch64-apple-darwin strip -x *.node - - host: windows-latest - target: aarch64-pc-windows-msvc - build: cd crates/node_binding && pnpm build --target aarch64-pc-windows-msvc + # - host: windows-latest + # target: aarch64-pc-windows-msvc + # build: cd crates/node_binding && pnpm build --target aarch64-pc-windows-msvc name: stable - ${{ matrix.settings.target }} - node@18 runs-on: ${{ matrix.settings.host }} steps: @@ -117,10 +117,12 @@ jobs: - name: Download macOS x64 artifact uses: actions/download-artifact@v3 with: + name: ${{ env.APP_NAME }}.darwin-x64.node path: crates/node_binding/artifacts - name: Download macOS arm64 artifact uses: actions/download-artifact@v3 with: + name: ${{ env.APP_NAME }}.darwin-arm64.node path: crates/node_binding/artifacts - name: Combine binaries run: cd crates/node_binding && pnpm universal From 7f5035806751c74ddba2107a6dc6d21c4276ac09 Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Thu, 30 Nov 2023 19:42:32 +0800 Subject: [PATCH 06/11] fix: ci --- .github/workflows/release.yml | 6 ++---- crates/node_binding/package.json | 2 +- pnpm-lock.yaml | 8 ++++---- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fdab148..9a5c599 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -102,7 +102,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v3 with: - name: bindings-${{ matrix.settings.target }} + # name: bindings-${{ matrix.settings.target }} path: crates/node_binding/${{ env.APP_NAME }}.*.node if-no-files-found: error universal-macOS: @@ -117,19 +117,17 @@ jobs: - name: Download macOS x64 artifact uses: actions/download-artifact@v3 with: - name: ${{ env.APP_NAME }}.darwin-x64.node path: crates/node_binding/artifacts - name: Download macOS arm64 artifact uses: actions/download-artifact@v3 with: - name: ${{ env.APP_NAME }}.darwin-arm64.node path: crates/node_binding/artifacts - name: Combine binaries run: cd crates/node_binding && pnpm universal - name: Upload artifact uses: actions/upload-artifact@v3 with: - name: bindings-universal-apple-darwin + # name: bindings-universal-apple-darwin path: crates/node_binding/${{ env.APP_NAME }}.*.node if-no-files-found: error publish: diff --git a/crates/node_binding/package.json b/crates/node_binding/package.json index c49a3b7..305ceab 100644 --- a/crates/node_binding/package.json +++ b/crates/node_binding/package.json @@ -16,7 +16,7 @@ }, "license": "MIT", "devDependencies": { - "@napi-rs/cli": "^2.16.3" + "@napi-rs/cli": "^2.16.4" }, "ava": { "timeout": "3m" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2899f6d..01139e0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,8 +27,8 @@ importers: crates/node_binding: devDependencies: '@napi-rs/cli': - specifier: ^2.16.3 - version: 2.16.3 + specifier: ^2.16.4 + version: 2.16.5 packages: @@ -44,8 +44,8 @@ packages: wrap-ansi-cjs: /wrap-ansi@7.0.0 dev: true - /@napi-rs/cli@2.16.3: - resolution: {integrity: sha512-3mLNPlbbOhpbIUKicLrJtIearlHXUuXL3UeueYyRRplpVMNkdn8xCyzY6PcYZi3JXR8bmCOiWgkVmLnrSL7DKw==} + /@napi-rs/cli@2.16.5: + resolution: {integrity: sha512-mFEzwrg4IOLngGd2/P6yeqIWgwQNn59Z08n1rndu6kLDq1gg954NH9cM1O9Da0RJuybt46p43lqgSsnAY2mxqA==} engines: {node: '>= 10'} hasBin: true dev: true From 159c4edaa30edf3eedaf845c49dc9128bf5c78d0 Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Thu, 30 Nov 2023 19:58:06 +0800 Subject: [PATCH 07/11] fix: ci --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a5c599..f0a207e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,7 @@ jobs: matrix: settings: - host: macos-latest + name: darwin-x64 target: x86_64-apple-darwin build: | cd crates/node_binding @@ -47,6 +48,7 @@ jobs: # docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine # build: cd crates/node_binding && set -e && pnpm build && strip *.node - host: macos-latest + name: darwin-arm64 target: aarch64-apple-darwin build: | cd crates/node_binding @@ -102,7 +104,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v3 with: - # name: bindings-${{ matrix.settings.target }} + name: ${{ env.APP_NAME }}.${{ matrix.settings.name }}.node path: crates/node_binding/${{ env.APP_NAME }}.*.node if-no-files-found: error universal-macOS: From 332b5f70238fee74f18788f15e562d88d23a0e1d Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Thu, 30 Nov 2023 20:12:18 +0800 Subject: [PATCH 08/11] fix: ci --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f0a207e..ce7a476 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -119,18 +119,20 @@ jobs: - name: Download macOS x64 artifact uses: actions/download-artifact@v3 with: + name: ${{ env.APP_NAME }}.darwin-x64.node path: crates/node_binding/artifacts - name: Download macOS arm64 artifact uses: actions/download-artifact@v3 with: + name: ${{ env.APP_NAME }}.darwin-arm64.node path: crates/node_binding/artifacts - name: Combine binaries run: cd crates/node_binding && pnpm universal - name: Upload artifact uses: actions/upload-artifact@v3 with: - # name: bindings-universal-apple-darwin - path: crates/node_binding/${{ env.APP_NAME }}.*.node + name: ${{ env.APP_NAME }}.darwin-universal.node + path: ${{ env.APP_NAME }}.*.node if-no-files-found: error publish: name: Publish From 09d1d1262dec32cfebe5acad3b9f6601da54c473 Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Thu, 30 Nov 2023 20:39:32 +0800 Subject: [PATCH 09/11] fix: ci --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce7a476..23c9ebb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,9 +33,11 @@ jobs: strip -x *.node # - host: windows-latest # build: cd crates/node_binding && pnpm build + # name: win32-x64-msvc # target: x86_64-pc-windows-msvc # - host: ubuntu-latest # target: x86_64-unknown-linux-gnu + # name: linux-x64-gnu # docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian # build: |- # set -e && @@ -44,6 +46,7 @@ jobs: # pnpm build --target x86_64-unknown-linux-gnu && # strip *.node # - host: ubuntu-latest + # name: linux-x64-musl # target: x86_64-unknown-linux-musl # docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine # build: cd crates/node_binding && set -e && pnpm build && strip *.node @@ -56,6 +59,7 @@ jobs: strip -x *.node # - host: windows-latest # target: aarch64-pc-windows-msvc + # name: win32-arm64-msvc # build: cd crates/node_binding && pnpm build --target aarch64-pc-windows-msvc name: stable - ${{ matrix.settings.target }} - node@18 runs-on: ${{ matrix.settings.host }} @@ -128,11 +132,14 @@ jobs: path: crates/node_binding/artifacts - name: Combine binaries run: cd crates/node_binding && pnpm universal + - name: List packages + run: ls -R + shell: bash - name: Upload artifact uses: actions/upload-artifact@v3 with: name: ${{ env.APP_NAME }}.darwin-universal.node - path: ${{ env.APP_NAME }}.*.node + path: crates/node_binding/${{ env.APP_NAME }}.*.node if-no-files-found: error publish: name: Publish @@ -146,7 +153,7 @@ jobs: - name: Download all artifacts uses: actions/download-artifact@v3 with: - path: crates/node_binding + path: crates/node_binding/artifacts - name: Move artifacts run: cd crates/node_binding && pnpm artifacts - name: List packages From d7fbbbae9527064261edc01bf9586c0fa717ee10 Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Thu, 30 Nov 2023 20:53:57 +0800 Subject: [PATCH 10/11] fix: ci --- .github/workflows/release.yml | 48 +++++++++++++++++------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 23c9ebb..caa8e3c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ permissions: on: push: branches: - - fix/universal-ci + - master tags-ignore: - '**' paths-ignore: @@ -31,25 +31,25 @@ jobs: cd crates/node_binding pnpm build strip -x *.node - # - host: windows-latest - # build: cd crates/node_binding && pnpm build - # name: win32-x64-msvc - # target: x86_64-pc-windows-msvc - # - host: ubuntu-latest - # target: x86_64-unknown-linux-gnu - # name: linux-x64-gnu - # docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian - # build: |- - # set -e && - # cd crates/node_binding && - # unset CC_x86_64_unknown_linux_gnu && unset CC && - # pnpm build --target x86_64-unknown-linux-gnu && - # strip *.node - # - host: ubuntu-latest - # name: linux-x64-musl - # target: x86_64-unknown-linux-musl - # docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine - # build: cd crates/node_binding && set -e && pnpm build && strip *.node + - host: windows-latest + build: cd crates/node_binding && pnpm build + name: win32-x64-msvc + target: x86_64-pc-windows-msvc + - host: ubuntu-latest + target: x86_64-unknown-linux-gnu + name: linux-x64-gnu + docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian + build: |- + set -e && + cd crates/node_binding && + unset CC_x86_64_unknown_linux_gnu && unset CC && + pnpm build --target x86_64-unknown-linux-gnu && + strip *.node + - host: ubuntu-latest + name: linux-x64-musl + target: x86_64-unknown-linux-musl + docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine + build: cd crates/node_binding && set -e && pnpm build && strip *.node - host: macos-latest name: darwin-arm64 target: aarch64-apple-darwin @@ -57,10 +57,10 @@ jobs: cd crates/node_binding pnpm build --target aarch64-apple-darwin strip -x *.node - # - host: windows-latest - # target: aarch64-pc-windows-msvc - # name: win32-arm64-msvc - # build: cd crates/node_binding && pnpm build --target aarch64-pc-windows-msvc + - host: windows-latest + target: aarch64-pc-windows-msvc + name: win32-arm64-msvc + build: cd crates/node_binding && pnpm build --target aarch64-pc-windows-msvc name: stable - ${{ matrix.settings.target }} - node@18 runs-on: ${{ matrix.settings.host }} steps: From b6222b5ca8950534aefca07ccb71042d887c77c4 Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Thu, 30 Nov 2023 22:21:26 +0800 Subject: [PATCH 11/11] fix: optimize ci --- .github/workflows/release.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index caa8e3c..b38677f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -132,9 +132,6 @@ jobs: path: crates/node_binding/artifacts - name: Combine binaries run: cd crates/node_binding && pnpm universal - - name: List packages - run: ls -R - shell: bash - name: Upload artifact uses: actions/upload-artifact@v3 with: