Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2
3 on:
4 # Run the jobs on either push or a pull_request, but not both.
5 push:
6 branches:
7 - master
8 pull_request:
9 branches:
10 - master
11
12 jobs:
13 build-linux:
14 runs-on: ubuntu-latest
15 strategy:
16 fail-fast: false
17 matrix:
18 include:
19 - compiler: gcc
20 config: cmake
21 - compiler: clang
22 config: cmake
23 - compiler: clang
24 config: asan
25 - compiler: clang
26 config: tsan
27 - compiler: clang
28 config: format
29 - compiler: clang
30 config: scan-build
31 - compiler: clang
32 config: framing
33
34 steps:
35 - uses: actions/checkout@v4
36 with:
37 submodules: true
38 - name: Install Prerequisites
39 shell: bash
40 run: |
41 sudo apt update
42 sudo apt install -y ninja-build libpopt-dev
43
44 - name: Configure Build & Test
45 shell: bash
46 env:
47 CC: ${{ matrix.compiler }}
48 run: ./travis.sh ${{ matrix.config }}
49
50 build-macox:
51 runs-on: macos-latest
52 steps:
53 - uses: actions/checkout@v4
54 with:
55 submodules: true
56 - name: Install Prerequisites
57 shell: bash
58 run: brew install ninja popt
59
60 - name: Configure Build & Test
61 shell: bash
62 run: ./travis.sh macos
63
64 build-win32:
65 runs-on: windows-latest
66 steps:
67 - uses: actions/checkout@v4
68 with:
69 submodules: true
70 - name: Configure Build & Test
71 shell: bash
72 run: |
73 cmake -E make_directory build/
74 cmake -S . -B build/ -DBUILD_EXAMPLES=ON -DCMAKE_C_FLAGS=" /W4"
75 cmake --build build/ --config Debug --target INSTALL
76 ctest -V ./build/