-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 942 Bytes
/
build_cmake.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
name: AI-Toolbox
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
# Do not stop all jobs if a single job fails.
fail-fast: false
matrix:
os: [ubuntu-20.04, Windows-2019, macos-11]
build-type: ["Release"]
steps:
- name: Checkout repository.
uses: actions/checkout@v4
- name: Create build folder
run: |
mkdir ${{ runner.workspace }}/GitHash/exampleProject/build
- name: Run CMake
working-directory: ${{ runner.workspace }}/GitHash/exampleProject/build
run: |
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
- name: Build
working-directory: ${{ runner.workspace }}/GitHash/exampleProject/build
run: |
cmake --build .
- name: Run test
working-directory: ${{ runner.workspace }}/GitHash/exampleProject/build
run: |
ctest -V