Skip to content

Commit 12a5647

Browse files
committed
CI: Add builds with Meson, remove some old Autotools builds
1 parent 0923202 commit 12a5647

File tree

6 files changed

+74
-100
lines changed

6 files changed

+74
-100
lines changed

.github/workflows/autotools-clang-5.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/autotools-clang-6.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/autotools-clang-7.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/autotools-gcc-7.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/meson-clang-10.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "meson: clang 10"
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-20.04
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Build
13+
run: |
14+
# Prevent blocking apt install on a question during configuring of tzdata.
15+
export DEBIAN_FRONTEND=noninteractive
16+
sudo apt update
17+
sudo apt install libxml2-dev mm-common clang-10 ninja-build python3-setuptools python3-pip --yes
18+
# Ubuntu 20.04 contains meson 0.53.2, but libxml++ requires meson >= 0.54.0.
19+
# Install it with pip3 instead of apt.
20+
sudo pip3 install "meson>=0.54.0"
21+
export CC=clang-10
22+
export CXX=clang++-10
23+
meson -Dwarnings=fatal _build
24+
cd _build
25+
meson compile
26+
- name: Test
27+
run: |
28+
cd _build
29+
meson test
30+
- name: Dist
31+
run: |
32+
sudo apt install git --yes
33+
# dist runs setup again so we need to specify CC and CXX again.
34+
export CC=clang-10
35+
export CXX=clang++-10
36+
cd _build
37+
meson dist

.github/workflows/meson-gcc-10.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "meson: gcc 10"
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-20.04
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Build
13+
run: |
14+
# Prevent blocking apt install on a question during configuring of tzdata.
15+
export DEBIAN_FRONTEND=noninteractive
16+
sudo apt update
17+
sudo apt install libxml2-dev mm-common g++-10 ninja-build python3-setuptools python3-pip --yes
18+
# Ubuntu 20.04 contains meson 0.53.2, but libxml++ requires meson >= 0.54.0.
19+
# Install it with pip3 instead of apt.
20+
sudo pip3 install "meson>=0.54.0"
21+
export CC=gcc-10
22+
export CXX=g++-10
23+
meson -Dwarnings=fatal _build
24+
cd _build
25+
meson compile
26+
- name: Test
27+
run: |
28+
cd _build
29+
meson test
30+
- name: Dist
31+
run: |
32+
sudo apt install git --yes
33+
# dist runs setup again so we need to specify CC and CXX again.
34+
export CC=gcc-10
35+
export CXX=g++-10
36+
cd _build
37+
meson dist

0 commit comments

Comments
 (0)