-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.45 KB
/
main_ci.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
name: main CI
on:
push:
branches: [ main ]
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
unixlike-gcc-debug-tests:
runs-on: ubuntu-latest
steps:
- name: Install gcc-12 and g++-12, and linux-headers
run: |
sudo apt update && sudo apt upgrade
sudo apt install gcc-12 g++-12 linux-headers-$(uname -r)
sudo update-alternatives \
--install /usr/bin/gcc gcc /usr/bin/gcc-12 100 \
--slave /usr/bin/g++ g++ /usr/bin/g++-12 \
--slave /usr/bin/gcov gcov /usr/bin/gcov-12
shell: bash
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Install Conan
id: conan
uses: turtlebrowser/get-conan@main
- name: Conan version
run: echo "${{ steps.conan.outputs.version }}"
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Conan install and build
run: |
conan install . -if=cmake-build-unixlike-gcc-debug-tests -pr=conan/profiles/unixlike-gcc-debug-tests -b=missing
conan build . -c -b -bf=cmake-build-unixlike-gcc-debug-tests
- name: Run tests
working-directory: ${{ github.workspace }}/cmake-build-unixlike-gcc-debug-tests
run: |
export ASAN_OPTIONS=detect_odr_violation=0
ctest -C Debug --output-on-failure
shell: bash