forked from SAtacker/quick-ftxui
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 1.1 KB
/
windows_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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Windows Build
on:
push:
branches: [ master ]
paths:
- ".github/workflows/windows_build.yml"
- "include/**"
- "src/**"
- "tests/**"
- "CMakeLists.txt"
pull_request:
branches: [ master ]
paths:
- ".github/workflows/windows_build.yml"
- "include/**"
- "src/**"
- "tests/**"
- "CMakeLists.txt"
jobs:
build:
runs-on: windows-2022
env:
CMAKE_PREFIX_PATH: ${{ github.workspace }}\.local
steps:
- uses: actions/checkout@v2
- name: Install Boost
run: |
vcpkg integrate install
vcpkg install boost-spirit --triplet x64-windows
vcpkg install boost-regex --triplet x64-windows
- name: Configure CMake
run: cmake -S . -B build "-DCMAKE_TOOLCHAIN_FILE=$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake"
- name: Build
run: cmake --build build --config Release --parallel
- name: Test
run: |
cd build
ctest -C Release
- name: Install
run: cmake --install build --config Release --prefix "$env:CMAKE_PREFIX_PATH"