-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (53 loc) · 1.77 KB
/
ubuntu.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
51
52
53
54
55
56
name: Ubuntu
on: [push, pull_request]
jobs:
build:
name: Builder on ${{ matrix.os }} and ${{ matrix.build_type }}
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
matrix:
os: [ubuntu-20.04]
build_type: [Release]
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install conan
conan profile new default --detect
- name: Display versions
run: |
cmake --version | head -n 1
gcc --version | head -n 1
conan --version | head -n 1
conan profile show default
cat /etc/lsb-release | grep "DISTRIB_DESCRIPTION"
- name: Setting up remotes
run: conan remote add catch2 https://api.bintray.com/conan/catchorg/Catch2
- name: install conan dependencies
run: conan install . -if build -s compiler.libcxx=libstdc++11 -s build_type=${{matrix.build_type}}
- name: cmake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -DCMAKE_TOOLCHAIN_FILE:PATH=./build/conan_paths.cmake
- name: build
run: cmake --build build --parallel 4
- name: test
run: |
cd build
ctest -j 4 --output-on-failure || exit 0
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2.2.2
with:
name: Testresults_${{matrix.build_type}}
path: build/testresult
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: build/testresult/*.xml
check_run_annotations: all tests, skipped tests
check_name: Test results ubuntu