From f9f72a5a7c37d48729e7e236abc1f5c7a10d8b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 11 Mar 2025 21:00:56 +0100 Subject: [PATCH] Test amalgamated build on Windows --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b174f0144..445ad576a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -208,6 +208,11 @@ jobs: run: | cl.exe /DJS_NAN_BOXING=0 /Zs cxxtest.cc cl.exe /DJS_NAN_BOXING=1 /Zs cxxtest.cc + - name: test amalgamation + run: | + build\${{matrix.buildType}}\qjs.exe amalgam.js + cl.exe /std:c11 /experimental:c11atomics quickjs-amalgam.c api-test.c /Fe:amalgam-api-test.exe + .\amalgam-api-test.exe windows-msvc-vs2019: runs-on: windows-2019 @@ -383,6 +388,12 @@ jobs: - name: test api run: | ./build/api-test + - name: test amalgamation + run: | + ./build/qjs amalgam.js + cc -Wall -I. quickjs-amalgam.c api-test.c -o amalgam-api-test -lm + ./amalgam-api-test + windows-mingw-shared: runs-on: windows-latest defaults: @@ -570,7 +581,7 @@ jobs: amalgam: strategy: matrix: - # TODO(bnoordhuis) test on windows + # Windows is tested as part of windows-msvc config: - { os: ubuntu-latest } - { os: macos-latest }