-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (28 loc) · 845 Bytes
/
build.yml
File metadata and controls
36 lines (28 loc) · 845 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
30
31
32
33
34
35
36
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-windows-x64:
name: Windows x64 Release (vcpkg)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@v5
- name: Cache vcpkg
uses: actions/cache@v4
with:
path: cmake-build/vcpkg_installed
key: vcpkg-windows-x64-${{ hashFiles('vcpkg.json', 'vcpkg-configuration.json') }}
restore-keys: vcpkg-windows-x64-
- name: Configure
run: cmake --preset windows-release-vcpkg
- name: Build
run: cmake --build cmake-build/build/windows-release-vcpkg --config Release --parallel