Skip to content

Commit 8e8b3b0

Browse files
committed
Add Windows support to GitHub Actions build matrix
- Included Windows in the build matrix for cross-platform compatibility. - Adjusted CMake configuration for Windows to use Visual Studio generator. - Commented out artifact upload step for further review.
1 parent b314b39 commit 8e8b3b0

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ jobs:
1313
os:
1414
- macos-latest
1515
- ubuntu-latest
16+
- windows-latest
1617
include:
1718
- os: macos-latest
1819
platform: macos
1920
- os: ubuntu-latest
2021
platform: linux
22+
- os: windows-latest
23+
platform: windows
2124

2225
runs-on: ${{ matrix.os }}
2326

@@ -38,16 +41,23 @@ jobs:
3841
run: |
3942
mkdir build
4043
cd build
41-
cmake .. -DCMAKE_BUILD_TYPE=Release
44+
if [ "${{ matrix.platform }}" = "windows" ]; then
45+
cmake .. -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022"
46+
else
47+
cmake .. -DCMAKE_BUILD_TYPE=Release
48+
fi
4249
4350
- name: Build Examples
4451
shell: bash
4552
run: |
4653
cd build
4754
cmake --build . --config Release
4855
49-
- name: Upload artifacts
50-
uses: actions/upload-artifact@v4
51-
with:
52-
name: examples-${{ matrix.platform }}
53-
path: build/examples/display_example/
56+
# - name: Upload artifacts
57+
# uses: actions/upload-artifact@v4
58+
# with:
59+
# name: examples-${{ matrix.platform }}
60+
# path: |
61+
# build/examples/*/
62+
# !build/examples/*/CMakeFiles/
63+
# !build/examples/*/cmake_install.cmake

0 commit comments

Comments
 (0)