Skip to content

Commit

Permalink
github: add ninja workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
clshortfuse committed Jun 28, 2024
1 parent aea20c9 commit 1efe209
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/cmake-ninja.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
name: CMake (Ninja)

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
with:
sdk-version: 22621

- name: Update submodules
run: |
git submodule update --init --recursive
- name: Configure CMake (x64)
run: >
cmake
-DCMAKE_SYSTEM_VERSION=10.0.22621.0
--preset ninja-x64
- name: Build (x64)
run: >
cmake
--build
--preset ninja-x64-release
--verbose
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
name: CMake on Windows
name: CMake (Visual Studio)

on:
push:
Expand Down

0 comments on commit 1efe209

Please sign in to comment.