Skip to content

Commit c38165d

Browse files
committed
feat: enhance CMake configuration steps for Windows and Unix environments
1 parent eb761ee commit c38165d

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ jobs:
5656
run: |
5757
choco install cmake ninja -y
5858
59-
- name: Configure CMake
59+
- name: Configure CMake (Windows)
60+
if: runner.os == 'Windows'
61+
run: cmake -B build -G Ninja -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DCMAKE_BUILD_TYPE=Release
62+
63+
- name: Configure CMake (Unix)
64+
if: runner.os != 'Windows'
6065
run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
6166

6267
- name: Build

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,18 @@ jobs:
5959
run: |
6060
choco install cmake ninja -y
6161
62-
- name: Configure CMake
62+
- name: Configure CMake (Windows)
63+
if: runner.os == 'Windows'
64+
run: |
65+
cmake -B build \
66+
-G Ninja \
67+
-DCMAKE_C_COMPILER=cl \
68+
-DCMAKE_CXX_COMPILER=cl \
69+
-DCMAKE_BUILD_TYPE=Release \
70+
-DCMAKE_INSTALL_PREFIX=/usr/local
71+
72+
- name: Configure CMake (Unix)
73+
if: runner.os != 'Windows'
6374
run: |
6475
cmake -B build \
6576
-G Ninja \

0 commit comments

Comments
 (0)