-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (38 loc) · 1.03 KB
/
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
---
name: Ubuntu CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ubuntu:
name: Ubuntu ${{ matrix.version }} (${{ matrix.compiler }}${{ matrix.version == 22.04 && ' with sanitizers' || '' }})
strategy:
fail-fast: false
matrix:
compiler: [clang, gcc]
version: [20.04, 22.04]
runs-on: ubuntu-${{ matrix.version }}
env:
CC: ${{ matrix.compiler }}
CFLAGS: -Werror
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install dependecies
run: |
sudo apt update
sudo apt install -y asciidoc-base
- name: '[clang] Install a default version for Ubuntu ${{ matrix.version }}'
if: matrix.compiler == 'clang'
run: sudo apt install -y clang
- name: Build and check
run: |
if [[ "${{ matrix.version }}" == 22.04 ]]; then
make distcheck-sanitizers
else
make distcheck
fi