-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1.12 KB
/
build.yaml
File metadata and controls
45 lines (38 loc) · 1.12 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
name: CI Builds
on:
# execute on every PR made targeting the branches bellow
pull_request:
branches:
- main
# execute on every push
push:
jobs:
build-cpp:
name: Build CPP Bindings
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Get CMake
uses: lukka/get-cmake@latest
- name: Cache vcpkg
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/vcpkg_cache
key: vcpkg-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('vcpkg.json', 'vcpkg-configuration.json', 'CMakePresets.json') }}
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
- name: Build bindings
uses: lukka/run-cmake@v10
env:
VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/vcpkg_cache,readwrite
with:
configurePreset: vcpkg
buildPreset: vcpkg
buildPresetAdditionalArgs: "['--config Release']"