@@ -174,36 +174,41 @@ jobs:
174
174
strategy :
175
175
fail-fast : false
176
176
matrix :
177
- arch : [x64, Win32]
178
- buildType : [Debug, Release]
177
+ config :
178
+ - { arch: x64, vsArch: x64, buildType: Debug }
179
+ - { arch: x64, vsArch: x64, buildType: Release }
180
+ - { arch: Win32, vsArch: x86, buildType: Debug }
181
+ - { arch: Win32, vsArch: x86, buildType: Release }
182
+ - { arch: ARM64, vsArch: arm64, buildType: Debug }
183
+ - { arch: ARM64, vsArch: arm64, buildType: Release }
179
184
steps :
180
185
- uses : actions/checkout@v4
181
186
- name : build
182
187
run : |
183
- cmake -B build -DQJS_BUILD_EXAMPLES=ON -G "Visual Studio 17 2022" -A ${{matrix.arch}}
184
- cmake --build build --config ${{matrix.buildType}}
188
+ cmake -B build -DQJS_BUILD_EXAMPLES=ON -G "Visual Studio 17 2022" -A ${{matrix.config. arch}}
189
+ cmake --build build --config ${{matrix.config. buildType}}
185
190
- name : stats
186
191
run : |
187
- build\${{matrix.buildType}}\qjs.exe -qd
192
+ build\${{matrix.config. buildType}}\qjs.exe -qd
188
193
- name : test
189
194
run : |
190
- cp build\${{matrix.buildType}}\fib.dll examples\
191
- cp build\${{matrix.buildType}}\point.dll examples\
192
- build\${{matrix.buildType}}\qjs.exe examples\test_fib.js
193
- build\${{matrix.buildType}}\qjs.exe examples\test_point.js
194
- build\${{matrix.buildType}}\run-test262.exe -c tests.conf
195
- build\${{matrix.buildType}}\function_source.exe
195
+ cp build\${{matrix.config. buildType}}\fib.dll examples\
196
+ cp build\${{matrix.config. buildType}}\point.dll examples\
197
+ build\${{matrix.config. buildType}}\qjs.exe examples\test_fib.js
198
+ build\${{matrix.config. buildType}}\qjs.exe examples\test_point.js
199
+ build\${{matrix.config. buildType}}\run-test262.exe -c tests.conf
200
+ build\${{matrix.config. buildType}}\function_source.exe
196
201
- name : test standalone
197
202
run : |
198
- build\${{matrix.buildType}}\qjs.exe -c examples\hello.js -o hello.exe
203
+ build\${{matrix.config. buildType}}\qjs.exe -c examples\hello.js -o hello.exe
199
204
.\hello.exe
200
205
- name : test api
201
206
run : |
202
- build\${{matrix.buildType}}\api-test.exe
207
+ build\${{matrix.config. buildType}}\api-test.exe
203
208
- name : Set up Visual Studio shell
204
209
uses : egor-tensin/vs-shell@v2
205
210
with :
206
- arch : ${{ matrix.arch == 'x64' && 'x64' || 'x86' }}
211
+ arch : ${{ matrix.config.vsArch }}
207
212
- name : cxxtest
208
213
run : |
209
214
cl.exe /DJS_NAN_BOXING=0 /Zs cxxtest.cc
0 commit comments