-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.25 KB
/
build.yaml
File metadata and controls
42 lines (40 loc) · 1.25 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
name: Build
on: [pull_request, push]
jobs:
build-on-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install build dependencies
run: sudo apt install -y build-essential cmake
- name: cmake
run: cmake -DUSE_CLANG_TIDY=1 .
- name: make
run: make -j`nproc`
build-on-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install build dependencies
run: |
brew install llvm
ln -s "/usr/local/opt/llvm/bin/clang-tidy" "/usr/local/bin/clang-tidy"
brew install cmake
- name: cmake
run: cmake -DUSE_CLANG_TIDY=1 .
- name: make
run: make -j`nproc`
build-on-windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: lukka/get-cmake@latest
- name: Restore artifacts, or setup vcpkg (do not install any package)
uses: lukka/run-vcpkg@v10
with:
vcpkgGitCommitId: '14e7bb4ae24616ec54ff6b2f6ef4e8659434ea44'
- name: Run CMake consuming CMakePreset.json and vcpkg.json by mean of vcpkg.
uses: lukka/run-cmake@v10
with:
configurePreset: 'msbuild-vcpkg'
buildPreset: 'msbuild-vcpkg'