|
60 | 60 | # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type |
61 | 61 | run: > |
62 | 62 | cmake -B ${{ steps.strings.outputs.build-output-dir }} |
| 63 | + -G Ninja |
63 | 64 | -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} |
64 | 65 | -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} |
65 | 66 | -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} |
|
78 | 79 | # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail |
79 | 80 | # run: ctest --build-config ${{ matrix.build_type }} |
80 | 81 | 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