Debian Codegraph @

.github/workflows/build.yml

raw
1 ---
2 name: build
3
4 on:
5 push:
6 ignore-paths:
7 - '**.md'
8 pull_request:
9 ignore-paths:
10 - '**.md'
11
12 jobs:
13 build:
14 runs-on: ubuntu-latest
15 continue-on-error: ${{ ! matrix.stable }}
16 strategy:
17 matrix:
18 os:
19 - fedora:latest
20 - quay.io/centos/centos:stream10
21 - quay.io/centos/centos:stream9
22 - debian:testing
23 - debian:latest
24 - ubuntu:rolling
25 - ubuntu:latest
26 stable: [true]
27 include:
28 - os: quay.io/fedora/fedora:rawhide
29 stable: false
30 - os: ubuntu:devel
31 stable: false
32 steps:
33 - uses: actions/checkout@v4
34
35 - name: Show OS information
36 run: cat /etc/os-release 2>/dev/null || echo /etc/os-release not available
37
38 - name: Install build dependencies
39 run: bash .github/workflows/install-dependencies
40
41 - name: Build clevis
42 run: |
43 mkdir -p build && cd build
44 export ninja=$(command -v ninja)
45 [ -z "${ninja}" ] && export ninja=$(command -v ninja-build)
46 export CFLAGS="-g -coverage"
47 meson .. || cat meson-logs/meson-log.txt >&2
48 ${ninja}
49
50 - name: Run tests
51 run: |
52 cd build
53 if ! meson test ; then
54 cat meson-logs/testlog.txt >&2
55 exit -1
56 fi
57
58 - name: Show full test logs
59 run: cat build/meson-logs/testlog.txt >&2
60
61 container:
62 image: ${{matrix.os}}
63 env:
64 DISTRO: ${{matrix.os}}
65 options: --privileged --device /dev/loop-control
66
67 # vim:set ts=2 sw=2 et: