-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.3 KB
/
build-matrix.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
48
49
50
name: CMake Build Matrix
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest ] #, ubuntu-latest, macos-latest
include:
- os: windows-latest
compiler: msvc
# - os: ubuntu-latest
# compiler: gcc
# - os: macos-latest
# compiler: clang
steps:
- name: Checkout code
uses: actions/[email protected]
- name: vcpkg build
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
# pkgs: boost-date-time boost-system
triplet: x64-windows-release
token: ${{ github.token }}
github-binarycache: true
# - name: Set up cache
# id: cache-cpm
# uses: actions/[email protected]
# with:
# path: ~/cpm-cache
# key: ${{ runner.os }}-cpm-${{ hashFiles('**/') }}
# restore-keys: |
# ${{ runner.os }}-cpm-
- name: Configure CMake
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
# cmake -B build -DCMAKE_BUILD_TYPE=Release -DCPM_SOURCE_CACHE=~/cpm-cache
- name: Build
run: |
cmake --build build --config Release