-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (40 loc) · 1.02 KB
/
main.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
47
name: Main CI
on:
push:
branches: [ main ]
paths:
- '.github/workflows/main_ci.yml'
- 'cmake/**'
- 'src/**'
- 'CMakeLists.txt'
- 'CMakePresets.json'
- 'vcpkg-configuration.json'
- 'vcpkg.json'
pull_request:
branches: [ main, feature/* ]
workflow_dispatch:
env:
VCPKG_COMMIT_ID: 93895b28ea7bc8cda10f156c5d336f3fc070f8b1
jobs:
build-vcpkg:
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: main
submodules: recursive
- name: Setup MSVC Environment
uses: ilammy/[email protected]
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }}
- name: Build
uses: lukka/[email protected]
with:
cmakeListsTxtPath: ${{ github.workspace }}/main/CMakeLists.txt
configurePreset: 'vs2022-windows'
buildPreset: 'vs2022-windows'