-
Notifications
You must be signed in to change notification settings - Fork 6
32 lines (25 loc) · 1.02 KB
/
Build.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
# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
name: CMake Build Windows x64 Debug/Release with Visual Studio 2022
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Update Submodules
run: git submodule update --init --force
- name: Configure CMake
# Configure CMake in a 'build' subdirectory.
run: cmake -B ${{github.workspace}}/build
- name: Build Release
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --target ALL_BUILD --config Release
- name: Build Debug
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --target ALL_BUILD --config Debug