Skip to content

Commit

Permalink
attempt to make it build
Browse files Browse the repository at this point in the history
  • Loading branch information
sxlijin committed Oct 11, 2024
1 parent 5d8be1b commit 63460f2
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/build-typescript-release.reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,20 @@ jobs:
mise: true

- target: x86_64-unknown-linux-musl
host: node-alpine
node_build: apk add musl-dev gcc build-base && CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-alpine-linux-musl-gcc pnpm build:napi-release --target x86_64-unknown-linux-musl --use-napi-cross
host: ubuntu-latest
before: |
curl -LO https://musl.cc/x86_64-linux-musl-cross.tgz
tar -xzf x86_64-linux-musl-cross.tgz
echo "$PWD/x86_64-linux-musl-cross/bin" >> $GITHUB_PATH
node_build: pnpm build:napi-release --target x86_64-unknown-linux-musl --use-napi-cross

- target: aarch64-unknown-linux-musl
host: ubuntu-latest
before: |
curl -LO https://musl.cc/aarch64-linux-musl-cross.tgz
tar -xzf aarch64-linux-musl-cross.tgz
echo "$PWD/aarch64-linux-musl-cross/bin" >> $GITHUB_PATH
node_build: pnpm build:napi-release --target aarch64-unknown-linux-musl --use-napi-cross

name: Build ${{ matrix._.target }}
runs-on: ${{ matrix._.host }}
Expand Down Expand Up @@ -97,6 +109,8 @@ jobs:
shared-key: engine-${{ github.job }}-${{ matrix._.target }}
cache-on-failure: true

- name: Build tools setup
run: ${{ matrix._.before }}
# Build NAPI release
- name: PNPM Build
run: ${{ matrix._.node_build }}
Expand Down

0 comments on commit 63460f2

Please sign in to comment.