-
Notifications
You must be signed in to change notification settings - Fork 2
29 lines (22 loc) · 840 Bytes
/
cmake_windows.yml
File metadata and controls
29 lines (22 loc) · 840 Bytes
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
name: Windows
on:
push:
branches:
- master # Trigger on push
pull_request:
branches:
- master # Trigger on pull
jobs:
build:
runs-on: windows-latest # Use Windows environment for the build
steps:
- name: Checkout code
uses: actions/checkout@v2 # Checkout the repository code
- name: Set up Visual Studio
uses: microsoft/setup-msbuild@v1.1 # Set up Visual Studio environment (MSBuild)
- name: Configure CMake
run: cmake -S . -B build -G "Visual Studio 17 2022" # Configure CMake for Visual Studio
- name: Build
run: cmake --build build --config Release # Build the project using CMake with Release configuration
- name: Run delegate_app
run: .\build\delegate_app\Release\delegate_app.exe # Run the built executable (adjust path for MSBuild)