Skip to content

Commit 7b38c8c

Browse files
committed
fix: revert node publish to previous working version
1 parent 4224968 commit 7b38c8c

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

.github/workflows/publish-node.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,23 @@ jobs:
2727
include:
2828
- os: ubuntu-latest
2929
target: x86_64-unknown-linux-gnu
30+
- os: ubuntu-latest
31+
target: x86_64-unknown-linux-musl
32+
use-cross: true
3033
- os: ubuntu-latest
3134
target: aarch64-unknown-linux-gnu
35+
use-cross: true
36+
- os: ubuntu-latest
37+
target: aarch64-unknown-linux-musl
38+
use-cross: true
39+
- os: macos-latest
40+
target: x86_64-apple-darwin
3241
- os: macos-latest
3342
target: aarch64-apple-darwin
3443
- os: windows-latest
3544
target: x86_64-pc-windows-msvc
45+
- os: windows-latest
46+
target: aarch64-pc-windows-msvc
3647
steps:
3748
- uses: actions/checkout@v4
3849

@@ -51,16 +62,12 @@ jobs:
5162
working-directory: packages/auths-node
5263
run: pnpm install
5364

54-
- name: Install cross-compilation tools (Linux ARM64)
55-
if: matrix.target == 'aarch64-unknown-linux-gnu'
56-
run: |
57-
sudo apt-get update
58-
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
65+
- name: Install cross
66+
if: matrix.use-cross
67+
run: cargo install cross --git https://github.com/cross-rs/cross
5968

6069
- name: Build native module
6170
working-directory: packages/auths-node
62-
env:
63-
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: ${{ matrix.target == 'aarch64-unknown-linux-gnu' && 'aarch64-linux-gnu-gcc' || '' }}
6471
run: pnpm build -- --target ${{ matrix.target }}
6572

6673
- uses: actions/upload-artifact@v4
@@ -78,7 +85,7 @@ jobs:
7885
include:
7986
- os: ubuntu-latest
8087
artifact: bindings-x86_64-unknown-linux-gnu
81-
- os: macos-14
88+
- os: macos-latest
8289
artifact: bindings-aarch64-apple-darwin
8390
steps:
8491
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)