-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.27 KB
/
Copy pathci.yml
File metadata and controls
48 lines (40 loc) · 1.27 KB
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
48
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install vcpkg
shell: pwsh
env:
VCPKG_ROOT: ${{ github.workspace }}\vcpkg
run: |
git clone https://github.com/microsoft/vcpkg $env:VCPKG_ROOT
& $env:VCPKG_ROOT\bootstrap-vcpkg.bat
- name: Configure CMake
shell: pwsh
run: |
cmake -S . -B build -G "Visual Studio 17 2022" -A x64 `
-DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}\vcpkg\scripts\buildsystems\vcpkg.cmake `
-DVCPKG_TARGET_TRIPLET=x64-windows-static `
-DUNDYING_TERMINAL_REQUIRE_DEPS=ON `
-DUNDYING_TERMINAL_BUILD_TESTS=ON
- name: Build
shell: pwsh
run: cmake --build build --config Release
- name: Run Tests
shell: pwsh
run: ctest --test-dir build -C Release --output-on-failure
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: undying-terminal-win64
path: |
build/Release/undying-terminal.exe
build/Release/undying-terminal-server.exe
build/Release/undying-terminal-terminal.exe