Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia committed Nov 30, 2023
1 parent 332b5f7 commit 09d1d12
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand All @@ -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
Expand All @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 09d1d12

Please sign in to comment.