Skip to content

Commit 7bfffbe

Browse files
committed
ci: fix cross compile for gnu linux
1 parent a0be594 commit 7bfffbe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
77

88
permissions: {}
99

1010
env:
11-
DEBUG: 'napi:*'
11+
DEBUG: "napi:*"
1212

1313
concurrency:
1414
group: ${{ github.workflow }}-${{ github.ref }}
@@ -25,7 +25,7 @@ jobs:
2525
matrix:
2626
include:
2727
- target: x86_64-unknown-linux-gnu
28-
os: ubuntu-latest
28+
os: ubuntu-24.04-arm
2929
- target: x86_64-unknown-linux-musl
3030
os: ubuntu-latest
3131
- target: aarch64-unknown-linux-gnu
@@ -60,7 +60,7 @@ jobs:
6060
- name: Install Rust
6161
uses: dtolnay/rust-toolchain@stable
6262
with:
63-
toolchain: '${{ steps.rustup-version.outputs.RUST_TOOLCHAIN_VERSION }}'
63+
toolchain: "${{ steps.rustup-version.outputs.RUST_TOOLCHAIN_VERSION }}"
6464
targets: ${{ matrix.target }}
6565

6666
- name: Cache Rust
@@ -100,6 +100,8 @@ jobs:
100100
working-directory: napi/angular-compiler
101101
if: ${{ contains(matrix.target , 'gnu') }}
102102
run: pnpm build-dev --release --target ${{ matrix.target }} --use-napi-cross
103+
env:
104+
TARGET_CC: clang
103105

104106
- name: Build ${{ matrix.target }}
105107
working-directory: napi/angular-compiler

0 commit comments

Comments
 (0)