Skip to content

Commit 1f924b6

Browse files
committed
ci: simplify
1 parent 13f260e commit 1f924b6

File tree

1 file changed

+6
-73
lines changed

1 file changed

+6
-73
lines changed

.github/workflows/main.yml

+6-73
Original file line numberDiff line numberDiff line change
@@ -7,59 +7,15 @@ on:
77
- master
88

99
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-
2210
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
4112
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
5014

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
6319
6420
- name: Setup
6521
run: meson setup build
@@ -69,26 +25,3 @@ jobs:
6925

7026
- name: Run tests
7127
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

Comments
 (0)