Skip to content

Commit 8761011

Browse files
authored
ci: add no-wasm-simd option (#4533)
1 parent 6e13b6b commit 8761011

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,21 @@ jobs:
7171
runs-on: ${{ matrix.runs-on }}
7272
secrets: inherit
7373

74+
test-with-no-wasm-simd:
75+
name: Test with Node.js ${{ matrix.node-version }} on ${{ matrix.runs-on }} with WASM SIMD disabled
76+
strategy:
77+
fail-fast: false
78+
max-parallel: 0
79+
matrix:
80+
node-version: ['24']
81+
runs-on: ['ubuntu-latest']
82+
uses: ./.github/workflows/nodejs.yml
83+
with:
84+
node-version: ${{ matrix.node-version }}
85+
runs-on: ${{ matrix.runs-on }}
86+
no-wasm-simd: '1'
87+
secrets: inherit
88+
7489
test-without-intl:
7590
name: Test with Node.js ${{ matrix.node-version }} compiled --without-intl
7691
strategy:
@@ -217,6 +232,7 @@ jobs:
217232
- dependency-review
218233
- test
219234
- test-types
235+
- test-with-no-wasm-simd
220236
- test-without-intl
221237
- test-fuzzing
222238
- lint

.github/workflows/nodejs.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
required: false
1414
type: boolean
1515
default: false
16+
no-wasm-simd:
17+
type: string
18+
required: false
19+
default: ''
1620

1721
permissions:
1822
contents: read
@@ -72,55 +76,63 @@ jobs:
7276
env:
7377
CI: true
7478
NODE_V8_COVERAGE: ${{ inputs.codecov == true && './coverage/tmp' || '' }}
79+
UNDICI_NO_WASM_SIMD: ${{ inputs['no-wasm-simd'] }}
7580

7681
- name: Test node-fetch
7782
run: npm run test:node-fetch
7883
id: test-node-fetch
7984
env:
8085
CI: true
8186
NODE_V8_COVERAGE: ${{ inputs.codecov == true && './coverage/tmp' || '' }}
87+
UNDICI_NO_WASM_SIMD: ${{ inputs['no-wasm-simd'] }}
8288

8389
- name: Test cache
8490
run: npm run test:cache
8591
id: test-cache
8692
env:
8793
CI: true
8894
NODE_V8_COVERAGE: ${{ inputs.codecov == true && './coverage/tmp' || '' }}
95+
UNDICI_NO_WASM_SIMD: ${{ inputs['no-wasm-simd'] }}
8996

9097
- name: Test cache-interceptor
9198
run: npm run test:cache-interceptor
9299
id: test-cache-interceptor
93100
env:
94101
CI: true
95102
NODE_V8_COVERAGE: ${{ inputs.codecov == true && './coverage/tmp' || '' }}
103+
UNDICI_NO_WASM_SIMD: ${{ inputs['no-wasm-simd'] }}
96104

97105
- name: Test interceptors
98106
run: npm run test:interceptors
99107
id: test-interceptors
100108
env:
101109
CI: true
102110
NODE_V8_COVERAGE: ${{ inputs.codecov == true && './coverage/tmp' || '' }}
111+
UNDICI_NO_WASM_SIMD: ${{ inputs['no-wasm-simd'] }}
103112

104113
- name: Test fetch
105114
run: npm run test:fetch
106115
id: test-fetch
107116
env:
108117
CI: true
109118
NODE_V8_COVERAGE: ${{ inputs.codecov == true && './coverage/tmp' || '' }}
119+
UNDICI_NO_WASM_SIMD: ${{ inputs['no-wasm-simd'] }}
110120

111121
- name: Test cookies
112122
run: npm run test:cookies
113123
id: test-cookies
114124
env:
115125
CI: true
116126
NODE_V8_COVERAGE: ${{ inputs.codecov == true && './coverage/tmp' || '' }}
127+
UNDICI_NO_WASM_SIMD: ${{ inputs['no-wasm-simd'] }}
117128

118129
- name: Test eventsource
119130
run: npm run test:eventsource
120131
id: test-eventsource
121132
env:
122133
CI: true
123134
NODE_V8_COVERAGE: ${{ inputs.codecov == true && './coverage/tmp' || '' }}
135+
UNDICI_NO_WASM_SIMD: ${{ inputs['no-wasm-simd'] }}
124136

125137
- name: Test infra
126138
run: npm run test:infra
@@ -135,34 +147,39 @@ jobs:
135147
env:
136148
CI: true
137149
NODE_V8_COVERAGE: ${{ inputs.codecov == true && './coverage/tmp' || '' }}
150+
UNDICI_NO_WASM_SIMD: ${{ inputs['no-wasm-simd'] }}
138151

139152
- name: Test websocket
140153
run: npm run test:websocket
141154
id: test-websocket
142155
env:
143156
CI: true
144157
NODE_V8_COVERAGE: ${{ inputs.codecov == true && './coverage/tmp' || '' }}
158+
UNDICI_NO_WASM_SIMD: ${{ inputs['no-wasm-simd'] }}
145159

146160
- name: Test node-test
147161
run: npm run test:node-test
148162
id: test-node-test
149163
env:
150164
CI: true
151165
NODE_V8_COVERAGE: ${{ inputs.codecov == true && './coverage/tmp' || '' }}
166+
UNDICI_NO_WASM_SIMD: ${{ inputs['no-wasm-simd'] }}
152167

153168
- name: Test cache-tests
154169
run: npm run test:cache-tests
155170
id: test-cache-tests
156171
env:
157172
CI: true
158173
NODE_V8_COVERAGE: ${{ inputs.codecov == true && './coverage/tmp' || '' }}
159-
174+
UNDICI_NO_WASM_SIMD: ${{ inputs['no-wasm-simd'] }}
175+
160176
- name: Test jest
161177
run: npm run test:jest
162178
id: test-jest
163179
env:
164180
CI: true
165181
NODE_V8_COVERAGE: ''
182+
UNDICI_NO_WASM_SIMD: ${{ inputs['no-wasm-simd'] }}
166183

167184
- name: Test sqlite
168185
if: inputs.node-version != '20'
@@ -171,13 +188,15 @@ jobs:
171188
env:
172189
CI: true
173190
NODE_V8_COVERAGE: ${{ inputs.codecov == true && './coverage/tmp' || '' }}
191+
UNDICI_NO_WASM_SIMD: ${{ inputs['no-wasm-simd'] }}
174192

175193
- name: Test wpt
176194
run: npm run test:wpt
177195
id: test-wpt
178196
env:
179197
CI: true
180198
NODE_V8_COVERAGE: ${{ inputs.codecov == true && './coverage/tmp' || '' }}
199+
UNDICI_NO_WASM_SIMD: ${{ inputs['no-wasm-simd'] }}
181200

182201
- name: Coverage Report
183202
if: inputs.codecov == true

0 commit comments

Comments
 (0)