Skip to content

Commit 2207b49

Browse files
committed
CI: Do some tests with Meson
Remove test with clang 7. Test gcc 9 and clang 10 with meson instead of autotools.
1 parent a7809d7 commit 2207b49

File tree

5 files changed

+70
-79
lines changed

5 files changed

+70
-79
lines changed

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

Lines changed: 0 additions & 28 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-9.yml

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

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

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

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

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

0 commit comments

Comments
 (0)