-
Notifications
You must be signed in to change notification settings - Fork 14
42 lines (32 loc) · 1.07 KB
/
Copy pathCI.yml
File metadata and controls
42 lines (32 loc) · 1.07 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
# This is a basic workflow that is manually triggered
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: CMake
run: cmake -S . -B ${{runner.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DSPVGENTWO_BUILD_TESTS=TRUE -DSPVGENTWO_BUILD_EXAMPLES=TRUE -DSPVGENTWO_BUILD_DISASSEMBLER=TRUE -DSPVGENTWO_BUILD_REFLECT=TRUE -DSPVGENTWO_BUILD_LINKER=TRUE
- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config Release -j4
- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest -C Release --rerun-failed --output-on-failure