@@ -170,40 +170,45 @@ jobs:
170170 ./build/api-test
171171
172172 windows-msvc :
173- runs-on : windows-latest
173+ runs-on : ${{ matrix.config.os }}
174174 strategy :
175175 fail-fast : false
176176 matrix :
177- arch : [x64, Win32]
178- buildType : [Debug, Release]
177+ config :
178+ - { arch: x64, vsArch: x64, buildType: Debug, os: windows-latest }
179+ - { arch: x64, vsArch: x64, buildType: Release, os: windows-latest }
180+ - { arch: Win32, vsArch: x86, buildType: Debug, os: windows-latest }
181+ - { arch: Win32, vsArch: x86, buildType: Release, os: windows-latest }
182+ - { arch: ARM64, vsArch: arm64, buildType: Debug, os: windows-11-arm }
183+ - { arch: ARM64, vsArch: arm64, buildType: Release, os: windows-11-arm }
179184 steps :
180185 - uses : actions/checkout@v4
181186 - name : build
182187 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}}
185190 - name : stats
186191 run : |
187- build\${{matrix.buildType}}\qjs.exe -qd
192+ build\${{matrix.config. buildType}}\qjs.exe -qd
188193 - name : test
189194 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
196201 - name : test standalone
197202 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
199204 .\hello.exe
200205 - name : test api
201206 run : |
202- build\${{matrix.buildType}}\api-test.exe
207+ build\${{matrix.config. buildType}}\api-test.exe
203208 - name : Set up Visual Studio shell
204209 uses : egor-tensin/vs-shell@v2
205210 with :
206- arch : ${{ matrix.arch == 'x64' && 'x64' || 'x86' }}
211+ arch : ${{ matrix.config.vsArch }}
207212 - name : cxxtest
208213 run : |
209214 cl.exe /DJS_NAN_BOXING=0 /Zs cxxtest.cc
0 commit comments