From 48cf3f36cde2c28ba2f321636bf8612873bd274a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 22 Mar 2026 13:57:42 -0700 Subject: [PATCH] ci: run Windows CMake examples after building Add a "Run Example" step to the build-examples-cmake-windows job so that each CMake example is executed after it is built, verifying the resulting binaries actually work. The executable name is derived from the matrix directory name by replacing hyphens with underscores, matching the project convention. --- .github/workflows/test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index deca513c8..d1cba5f87 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -288,6 +288,14 @@ jobs: cmake -B build -DFETCHCONTENT_SOURCE_DIR_GHOSTTY=${{ github.workspace }} cmake --build build + - name: Run Example + shell: pwsh + run: | + $name = "${{ matrix.dir }}" -replace '-','_' + $exe = "example/${{ matrix.dir }}/build/Debug/${name}.exe" + if (!(Test-Path $exe)) { $exe = "example/${{ matrix.dir }}/build/${name}.exe" } + & $exe + build-cmake: runs-on: namespace-profile-ghostty-sm needs: test