From 4a41d3f211e946d872f23e7af89cad6419c9fd7f Mon Sep 17 00:00:00 2001 From: Max <112043822+Maxaubert@users.noreply.github.com> Date: Mon, 25 May 2026 21:26:57 +0200 Subject: [PATCH] ci: GitHub Actions build + test on windows-latest (#22) On push to main and on PRs, build the app (compile + link + manifest) and run the doctest unit tests via build.bat, so the verification loop is enforced behind the issue->branch->PR workflow. build.bat finds MSVC via vswhere; windows-latest ships the VC toolset + Windows SDK. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/build.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..3d203f42 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: build + +on: + push: + branches: [ main ] + pull_request: + +jobs: + windows-build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + # build.bat locates MSVC via vswhere (-all -prerelease) and runs vcvars64; + # the windows-latest runner ships Visual Studio with the C++ toolset + Windows SDK. + - name: Build app (compile + link + manifest) + shell: cmd + run: build.bat + - name: Build and run unit tests + shell: cmd + run: build.bat test