|
7 | 7 | - master
|
8 | 8 |
|
9 | 9 | jobs:
|
10 |
| - # Enforce the standard of g_malloc instead of malloc in the project |
11 |
| - enforce-g_malloc: |
12 |
| - runs-on: ubuntu-latest |
13 |
| - steps: |
14 |
| - - uses: actions/checkout@v2 |
15 |
| - with: |
16 |
| - # Clone the whole branch, we have to fetch tags later |
17 |
| - fetch-depth: 0 |
18 |
| - |
19 |
| - - name: enforce-g_malloc |
20 |
| - run: "! git grep -P '(?<!g_)malloc' ':!.valgrind.suppressions' ':!.github/workflows/main.yml'" |
21 |
| - |
22 | 10 | build:
|
23 |
| - strategy: |
24 |
| - matrix: |
25 |
| - CC: |
26 |
| - - clang |
27 |
| - - gcc |
28 |
| - distro: |
29 |
| - - alpine |
30 |
| - - archlinux |
31 |
| - - debian-stretch |
32 |
| - - debian-buster |
33 |
| - - fedora |
34 |
| - - ubuntu-xenial |
35 |
| - - ubuntu-bionic |
36 |
| - - ubuntu-focal |
37 |
| - |
38 |
| - env: |
39 |
| - CC: ${{ matrix.CC }} |
40 |
| - EXTRA_CFLAGS: "-Werror" |
| 11 | + runs-on: ubuntu-latest |
41 | 12 | steps:
|
42 |
| - - uses: actions/checkout@v2 |
43 |
| - with: |
44 |
| - # Clone the whole branch, we have to fetch tags later |
45 |
| - fetch-depth: 0 |
46 |
| - - uses: actions/setup-python@v1 |
47 |
| - with: |
48 |
| - python-version: '3.x' |
49 |
| - - run: pip3 install meson ninja |
| 13 | + - uses: actions/checkout@v4 |
50 | 14 |
|
51 |
| - # Fetch tags to determine proper version number inside git |
52 |
| - - name: fetch tags |
53 |
| - run: git fetch --tags |
54 |
| - # We cannot pull tags with old distros, since there is no `.git`. See below. |
55 |
| - if: "! (matrix.distro == 'ubuntu-bionic' || matrix.distro == 'ubuntu-xenial' || matrix.distro == 'debian-stretch')" |
56 |
| - |
57 |
| - # The Github checkout Action doesn't support distros with git older than 2.18 |
58 |
| - # With git<2.18 it downloads the code via API and does not clone it via git :facepalm: |
59 |
| - # To succeed the tests, we have to manually replace the VERSION macro |
60 |
| - - name: fix version number for old distros |
61 |
| - run: 'sed -i "s/-non-git/-ci-oldgit-$GITHUB_SHA/" Makefile' |
62 |
| - if: " (matrix.distro == 'ubuntu-bionic' || matrix.distro == 'ubuntu-xenial' || matrix.distro == 'debian-stretch')" |
| 15 | + - name: Install dependencies |
| 16 | + - run: | |
| 17 | + sudo apt install -y ninja-build python3-pip |
| 18 | + pip3 install meson |
63 | 19 |
|
64 | 20 | - name: Setup
|
65 | 21 | run: meson setup build
|
|
69 | 25 |
|
70 | 26 | - name: Run tests
|
71 | 27 | run: ninja -C build test
|
72 |
| - |
73 |
| - runs-on: ubuntu-latest |
74 |
| - container: |
75 |
| - image: dunst/ci:${{ matrix.distro }} |
76 |
| - |
77 |
| - doxygen: |
78 |
| - strategy: |
79 |
| - matrix: |
80 |
| - distro: |
81 |
| - - misc-doxygen |
82 |
| - |
83 |
| - steps: |
84 |
| - - uses: actions/checkout@v2 |
85 |
| - with: |
86 |
| - # Clone the whole branch, we have to fetch tags later |
87 |
| - fetch-depth: 0 |
88 |
| - |
89 |
| - - name: doxygen |
90 |
| - run: make -j doc-doxygen |
91 |
| - |
92 |
| - runs-on: ubuntu-latest |
93 |
| - container: |
94 |
| - image: dunst/ci:${{ matrix.distro }} |
0 commit comments