-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.05 KB
/
cmake-single-platform.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: C++/C CMake
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Prepare Vulkan SDK
uses: humbletim/[email protected]
with:
vulkan-query-version: 1.3.275.0
vulkan-components: Vulkan-Headers, Vulkan-Loader
vulkan-use-cache: true
- name: Install Ninja
run: choco install ninja -y
- name: Add Ninja to PATH
run: echo "::add-path::C:\\ProgramData\\chocolatey\\bin"
- name: Configure CMake
shell: cmd
run: |
cmake -S %GITHUB_WORKSPACE%/Ifnity -B %GITHUB_WORKSPACE%/Ifnity/build ^
-G "Ninja" ^
-DCMAKE_C_COMPILER=cl ^
-DCMAKE_CXX_COMPILER=cl ^
-DCMAKE_BUILD_TYPE=%BUILD_TYPE%
- name: Build
shell: cmd
run: cmake --build %GITHUB_WORKSPACE%/Ifnity/build --config %BUILD_TYPE%