-
Notifications
You must be signed in to change notification settings - Fork 119
37 lines (29 loc) · 1.05 KB
/
build.yaml
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
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-2019, macos-latest]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands
run: cmake -E make_directory ${{runner.workspace}}/TinyInst/build
- name: Configure CMake
working-directory: ${{runner.workspace}}/TinyInst/build
run: cmake ..
- name: Build
working-directory: ${{runner.workspace}}/TinyInst/build
run: cmake --build . --config Release
- name: Test
working-directory: ${{runner.workspace}}/TinyInst/build
shell: bash
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C Release