Add Windows SDK CI

This commit is contained in:
Saúl Ibarra Corretgé 2024-11-18 10:06:27 +01:00 committed by Ben Noordhuis
parent 974f40a1a8
commit bdadad97cd

View file

@ -308,6 +308,36 @@ jobs:
build\run-test262.exe -c tests.conf build\run-test262.exe -c tests.conf
build\function_source.exe build\function_source.exe
windows-sdk:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
arch: [x64, Win32]
buildType: [Debug, Release]
steps:
- uses: actions/checkout@v4
- name: Install windows sdk
uses: ChristopheLav/windows-sdk-install@v1
with:
version-sdk: 26100
features: 'OptionId.DesktopCPPx86,OptionId.DesktopCPPx64'
- name: build
run: |
cmake -B build -DBUILD_EXAMPLES=ON -DCMAKE_SYSTEM_VERSION="10.0.26100.0" -A ${{matrix.arch}}
cmake --build build --config ${{matrix.buildType}}
- name: stats
run: |
build\${{matrix.buildType}}\qjs.exe -qd
- name: test
run: |
cp build\${{matrix.buildType}}\fib.dll examples\
cp build\${{matrix.buildType}}\point.dll examples\
build\${{matrix.buildType}}\qjs.exe examples\test_fib.js
build\${{matrix.buildType}}\qjs.exe examples\test_point.js
build\${{matrix.buildType}}\run-test262.exe -c tests.conf
build\${{matrix.buildType}}\function_source.exe
windows-mingw: windows-mingw:
runs-on: windows-latest runs-on: windows-latest
strategy: strategy: