Skip to content

Commit 0f00d34

Browse files
committed
Test Ninja build on CI
1 parent 5a2bede commit 0f00d34

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/cmake.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,24 @@ jobs:
163163
- name: Create Build Environment
164164
run: cmake -E make_directory ${{github.workspace}}/build
165165

166+
- name: ccache
167+
uses: hendrikmuhs/ccache-action@v1.2
168+
with:
169+
key: win64
170+
171+
- name: Set up MSVC environment
172+
uses: ilammy/msvc-dev-cmd@v1
173+
with:
174+
arch: x64
175+
176+
- name: Install Ninja
177+
uses: seanmiddleditch/gha-setup-ninja@v3
178+
166179
- name: Configure CMake
167180
shell: bash
168181
working-directory: ${{github.workspace}}/build
169-
run: cmake $GITHUB_WORKSPACE -G "Visual Studio 17 2022" -A x64
182+
run: cmake $GITHUB_WORKSPACE -GNinja -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
183+
170184
- name: Build
171185
shell: bash
172186
working-directory: ${{github.workspace}}/build

0 commit comments

Comments
 (0)