From 09d1d1262dec32cfebe5acad3b9f6601da54c473 Mon Sep 17 00:00:00 2001 From: ClarkXia Date: Thu, 30 Nov 2023 20:39:32 +0800 Subject: [PATCH] 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