-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 971 Bytes
/
Copy pathbuild.yml
File metadata and controls
41 lines (34 loc) · 971 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
37
38
39
40
41
name: Build
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
build_type: [Release, Debug]
include:
- os: ubuntu-latest
triplet: x64-linux
- os: macos-latest
triplet: x64-osx
- os: windows-latest
triplet: x64-windows
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup vcpkg
id: vcpkg
uses: vcpkg/actions/setup-vcpkg@v1
- name: Configure CMake
run: >
cmake -B build -S .
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake
-DVCPKG_TARGET_TRIPLET=${{ matrix.triplet }}
- name: Build
run: cmake --build build --config ${{ matrix.build_type }}