Skip to content

Commit 83dd31d

Browse files
committed
fix(ci): fix napi release (#12409)
1 parent c1b2f48 commit 83dd31d

File tree

5 files changed

+400
-142
lines changed

5 files changed

+400
-142
lines changed

.github/workflows/release_oxlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
- name: Build
104104
shell: bash
105105
env:
106-
CC: clang # for mimalloc
106+
TARGET_CC: clang # for mimalloc
107107
run: |
108108
cross build --release -p oxlint --bin oxlint --features allocator --target=${{ matrix.target }}
109109
cross build --release -p oxc_language_server --bin oxc_language_server --target=${{ matrix.target }}

.github/workflows/reusable_release_napi.yml

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -53,58 +53,47 @@ jobs:
5353
include:
5454
- os: windows-latest
5555
target: x86_64-pc-windows-msvc
56-
build: |
57-
pnpm build --target x86_64-pc-windows-msvc
56+
build: pnpm build --target x86_64-pc-windows-msvc
5857

5958
- os: windows-latest
6059
target: aarch64-pc-windows-msvc
61-
build: |
62-
pnpm build --target aarch64-pc-windows-msvc
60+
build: pnpm build --target aarch64-pc-windows-msvc
6361

6462
- os: ubuntu-latest
6563
target: x86_64-unknown-linux-gnu
66-
build: |
67-
pnpm build --target x86_64-unknown-linux-gnu --use-napi-cross
64+
build: pnpm build --target x86_64-unknown-linux-gnu --use-napi-cross
6865

6966
- os: ubuntu-latest
7067
target: x86_64-unknown-linux-musl
71-
build: |
72-
pnpm build --target x86_64-unknown-linux-musl -x
68+
build: pnpm build --target x86_64-unknown-linux-musl -x
7369

7470
- os: ubuntu-latest
7571
target: aarch64-unknown-linux-gnu
76-
build: |
77-
pnpm build --target aarch64-unknown-linux-gnu --use-napi-cross
72+
build: pnpm build --target aarch64-unknown-linux-gnu --use-napi-cross
7873

7974
- os: ubuntu-latest
8075
target: aarch64-unknown-linux-musl
81-
build: |
82-
pnpm build --target aarch64-unknown-linux-musl -x
76+
build: pnpm build --target aarch64-unknown-linux-musl -x
8377

8478
- os: ubuntu-latest
8579
target: armv7-unknown-linux-gnueabihf
86-
build: |
87-
pnpm build --target armv7-unknown-linux-gnueabihf --use-napi-cross
80+
build: pnpm build --target armv7-unknown-linux-gnueabihf --use-napi-cross
8881

8982
- os: ubuntu-latest
9083
target: armv7-unknown-linux-musleabihf
91-
build: |
92-
pnpm build --target armv7-unknown-linux-musleabihf -x
84+
build: pnpm build --target armv7-unknown-linux-musleabihf -x
9385

9486
- os: macos-latest
9587
target: x86_64-apple-darwin
96-
build: |
97-
pnpm build --target x86_64-apple-darwin
88+
build: pnpm build --target x86_64-apple-darwin
9889

9990
- os: macos-latest
10091
target: aarch64-apple-darwin
101-
build: |
102-
pnpm build --target aarch64-apple-darwin
92+
build: pnpm build --target aarch64-apple-darwin
10393

10494
- os: ubuntu-latest
10595
target: wasm32-wasip1-threads
106-
build: |
107-
pnpm build --target wasm32-wasip1-threads
96+
build: pnpm build --target wasm32-wasip1-threads
10897

10998
- os: ubuntu-latest
11099
target: s390x-unknown-linux-gnu
@@ -121,7 +110,7 @@ jobs:
121110
build: |
122111
sudo apt-get update
123112
sudo apt-get install gcc-riscv64-linux-gnu g++-riscv64-linux-gnu -y
124-
export CC=riscv64-linux-gnu-gcc
113+
export TARGET_CC=riscv64-linux-gnu-gcc
125114
export CXX=riscv64-linux-gnu-g++
126115
pnpm build --target riscv64gc-unknown-linux-gnu
127116
@@ -142,7 +131,7 @@ jobs:
142131
run: ${{ matrix.build }}
143132
shell: bash
144133
env:
145-
CC: clang # for mimalloc
134+
TARGET_CC: clang # for mimalloc
146135

147136
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
148137
with:

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)