Skip to content

Commit 8e5fdc6

Browse files
committed
test action
Signed-off-by: Osyotr <[email protected]>
1 parent 66b9b2f commit 8e5fdc6

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

.github/workflows/build-cmake.yaml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ jobs:
5959
cc: clang
6060
cxx: clang++
6161
developer-dir: /Applications/Xcode_16.4.app/Contents/Developer
62+
63+
- os: windows-2025
64+
cc: cl.exe
65+
cxx: cl.exe
66+
unity: OFF
67+
6268
exclude:
6369
- environment: { unity: OFF }
6470
cmake-build-type: Release
@@ -118,15 +124,37 @@ jobs:
118124
brew install ninja qt@6
119125
pip3 install tornado --break-system-packages
120126
127+
- name: Install Qt
128+
if: ${{ runner.os == 'Windows' }}
129+
uses: jurplel/install-qt-action@v4
130+
121131
- name: Configure repository
132+
if: ${{ runner.os != 'Windows' }}
133+
shell: bash
122134
run: ./configure.sh
123135

136+
- uses: ilammy/msvc-dev-cmd@v1
137+
if: ${{ runner.os == 'Windows' }}
138+
139+
- name: Bootstrap boost (Windows)
140+
if: ${{ runner.os == 'Windows' }}
141+
shell: cmd
142+
run: .\bootstrap.bat
143+
working-directory: ./3party/boost
144+
145+
- name: Install boost (Windows)
146+
if: ${{ runner.os == 'Windows' }}
147+
shell: cmd
148+
run: .\b2.exe headers
149+
working-directory: ./3party/boost
150+
124151
- name: Configure ccache
125152
uses: hendrikmuhs/[email protected]
126153
with:
127154
key: ${{ github.workflow }}-${{ matrix.environment.os }}-${{ matrix.environment.cc }}-${{ matrix.environment.unity }}-${{ matrix.cmake-build-type }}
128155

129156
- name: Configure cmake
157+
shell: bash
130158
env:
131159
CC: ${{ matrix.environment.cc }}
132160
CXX: ${{ matrix.environment.cxx }}
@@ -136,13 +164,12 @@ jobs:
136164
run: |
137165
cmake . -B ${{ env.BUILD_DIR }} -G Ninja \
138166
-DCMAKE_BUILD_TYPE=${{ matrix.cmake-build-type }} \
139-
-DCMAKE_C_FLAGS=-g1 \
140-
-DCMAKE_CXX_FLAGS=-g1 \
141167
-DCMAKE_UNITY_BUILD=${UNITY_BUILD}
142168
143169
- name: Compile
170+
shell: bash
144171
working-directory: ${{ env.BUILD_DIR }}
145-
run: ninja
172+
run: cmake --build .
146173

147174
- name: Prepare testing environment (Linux)
148175
if: ${{ runner.os == 'Linux' }}

0 commit comments

Comments
 (0)