Debian Codegraph @

.github/workflows/compilation.yml

raw
1 name: Compilation with different compilers
2
3 on:
4 pull_request:
5 branches:
6 - master
7
8 jobs:
9 build:
10 name: compilation
11 runs-on: ubuntu-24.04
12
13 strategy:
14 fail-fast: false
15 matrix:
16 compiler: ['gcc-10', 'gcc-11', 'gcc-12', 'gcc-13', 'gcc-14',
17 'clang-14', 'clang-15', 'clang-16', 'clang-17', 'clang-18']
18
19 steps:
20 - uses: actions/checkout@v6
21
22 - name: Install build dependencies
23 run: |
24 sudo apt -y install ansible
25 ansible-playbook -b -i "localhost," -c local misc/install-test-dependencies.yml -e "test_dependencies=false"
26
27 - name: Install compiler
28 run: |
29 sudo apt -y install ${{ matrix.compiler }}
30
31 - name: Configure
32 run: |
33 ./autogen.sh && CC=${{ matrix.compiler }} ./configure
34
35 - name: Make
36 run: |
37 make