Skip to content

Commit b13d895

Browse files
committed
Add Windows 2025 VS 2026 clang-cl CI
1 parent bdfee58 commit b13d895

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/cmake-multi-platform.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
6161
run: >
6262
cmake -B ${{ steps.strings.outputs.build-output-dir }}
63+
-G Ninja
6364
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
6465
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
6566
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
@@ -78,3 +79,43 @@ jobs:
7879
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
7980
# run: ctest --build-config ${{ matrix.build_type }}
8081
run: echo "Tests are skipped"
82+
83+
build-windows2025-vs2026:
84+
runs-on: windows-2025-vs2026
85+
86+
steps:
87+
- uses: actions/checkout@v6
88+
89+
- name: Setup MSVC environment
90+
uses: ilammy/msvc-dev-cmd@v1
91+
with:
92+
arch: x64
93+
94+
- name: Set reusable strings
95+
id: strings
96+
shell: bash
97+
run: |
98+
echo "build-output-dir=${{ github.workspace }}/build-windows2025-vs2026" >> "$GITHUB_OUTPUT"
99+
100+
- name: Setup CMake
101+
uses: lukka/get-cmake@latest
102+
with:
103+
cmakeVersion: "~4.2.0" # use most recent 4.2.x version
104+
105+
- name: Configure CMake
106+
run: >
107+
cmake -B ${{ steps.strings.outputs.build-output-dir }}
108+
-G Ninja
109+
-S ${{ github.workspace }}
110+
-DCMAKE_C_COMPILER=clang-cl
111+
-DCMAKE_CXX_COMPILER=clang-cl
112+
-DCMAKE_BUILD_TYPE=Release
113+
-DFREEIMAGE_WITH_LIBHEIF:BOOL=OFF
114+
-DFREEIMAGE_BUILD_TESTS:BOOL=ON
115+
116+
- name: Build
117+
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release
118+
119+
- name: Test
120+
working-directory: ${{ steps.strings.outputs.build-output-dir }}
121+
run: echo "Tests are skipped"

0 commit comments

Comments
 (0)