10
10
pull_request : null
11
11
12
12
env :
13
- DEBUG : " napi:*"
13
+ DEBUG : napi:*
14
+ APP_NAME : rspack-resolver
15
+ OXC_LOG : debug
16
+ MACOSX_DEPLOYMENT_TARGET : 10.13
17
+ CC : clang
14
18
15
19
concurrency :
16
20
group : ${{ github.workflow }}-${{ github.ref }}
@@ -81,21 +85,17 @@ jobs:
81
85
build : pnpm build -x
82
86
- os : ubuntu-latest
83
87
target : riscv64gc-unknown-linux-gnu
84
- setup : |
85
- sudo apt-get update
86
- sudo apt-get install gcc-riscv64-linux-gnu -y
87
- echo "CXX=riscv64-linux-gnu-gcc" >> $GITHUB_ENV
88
- build : pnpm build --use-napi-cross
88
+ build : |
89
+ export CFLAGS="-fuse-ld=lld"
90
+ pnpm build --use-napi-cross
89
91
- os : ubuntu-latest
90
92
target : powerpc64le-unknown-linux-gnu
91
93
build : pnpm build --use-napi-cross
92
94
- os : ubuntu-latest
93
95
target : s390x-unknown-linux-gnu
94
- setup : |
95
- sudo apt-get update
96
- sudo apt-get install gcc-s390x-linux-gnu -y
97
- echo "CXX=s390x-linux-gnu-gcc" >> $GITHUB_ENV
98
- build : pnpm build
96
+ build : |
97
+ export CFLAGS="-fuse-ld=lld"
98
+ pnpm build --use-napi-cross
99
99
- os : macos-latest
100
100
target : x86_64-apple-darwin
101
101
build : pnpm build
@@ -123,23 +123,16 @@ jobs:
123
123
version : 0.13.0
124
124
125
125
- name : Install cargo-zigbuild
126
- uses : taiki-e/install-action@v2
126
+ uses : taiki-e/install-action@5651179950649c44da31d346537e20c0534f0f25 # v2
127
127
if : ${{ contains(matrix.target, 'musl') }}
128
128
env :
129
129
GITHUB_TOKEN : ${{ github.token }}
130
130
with :
131
131
tool : cargo-zigbuild
132
132
133
- - name : Setup toolchain
134
- if : ${{ matrix.setup }}
135
- run : ${{ matrix.setup }}
136
- shell : bash
137
-
138
133
- name : Build
139
134
run : ${{ matrix.build }} --target ${{ matrix.target }}
140
135
shell : bash
141
- env :
142
- CC : ${{ matrix.target != 'riscv64gc-unknown-linux-gnu' && matrix.target != 's390x-unknown-linux-gnu' && 'clang' || '' }}
143
136
144
137
- name : Upload artifacts
145
138
uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
@@ -165,7 +158,7 @@ jobs:
165
158
RUSTUP_IO_THREADS : 1
166
159
with :
167
160
operating_system : freebsd
168
- version : " 14.0 "
161
+ version : " 14.2 "
169
162
memory : 8G
170
163
cpu_count : 3
171
164
environment_variables : " DEBUG RUSTUP_IO_THREADS"
0 commit comments