Skip to content

Commit 76f2f7f

Browse files
committed
Add GitHub Actions for CI
Based on the ones used by libsigcplusplus.
1 parent bbc31d7 commit 76f2f7f

9 files changed

+225
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "CI: autotools: 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+
sudo apt update
15+
sudo apt install libxml2-dev mm-common clang-10
16+
export CXX=clang++-10
17+
./autogen.sh --enable-warnings=fatal
18+
make
19+
- name: Test
20+
run: make check
21+
- name: Distcheck
22+
run: |
23+
# distcheck runs configure again so we need to specify CXX again.
24+
export CXX=clang++-10
25+
make distcheck
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "CI: autotools: clang 5"
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-18.04
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Build
13+
run: |
14+
sudo apt update
15+
sudo apt install libxml2-dev mm-common clang-5.0
16+
export CXX=clang++-5.0
17+
./autogen.sh --enable-warnings=fatal
18+
make
19+
- name: Test
20+
run: make check
21+
- name: Distcheck
22+
run: |
23+
# distcheck runs configure again so we need to specify CXX again.
24+
export CXX=clang++-5.0
25+
make distcheck
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "CI: autotools: clang 6"
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-18.04
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Build
13+
run: |
14+
sudo apt update
15+
sudo apt install libxml2-dev mm-common clang-6.0
16+
export CXX=clang++-6.0
17+
./autogen.sh --enable-warnings=fatal
18+
make
19+
- name: Test
20+
run: make check
21+
- name: Distcheck
22+
run: |
23+
# distcheck runs configure again so we need to specify CXX again.
24+
export CXX=clang++-6.0
25+
make distcheck
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "CI: autotools: clang 7"
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-18.04
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Build
13+
run: |
14+
sudo apt update
15+
sudo apt install libxml2-dev mm-common clang-7
16+
export CXX=clang++-7
17+
./autogen.sh --enable-warnings=fatal
18+
make
19+
- name: Test
20+
run: make check
21+
- name: Distcheck
22+
run: |
23+
# distcheck runs configure again so we need to specify CXX again.
24+
export CXX=clang++-7
25+
make distcheck
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "CI: autotools: clang 8"
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+
sudo apt update
15+
sudo apt install libxml2-dev mm-common clang-8
16+
export CXX=clang++-8
17+
./autogen.sh --enable-warnings=fatal
18+
make
19+
- name: Test
20+
run: make check
21+
- name: Distcheck
22+
run: |
23+
# distcheck runs configure again so we need to specify CXX again.
24+
export CXX=clang++-8
25+
make distcheck
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "CI: autotools: clang 9"
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+
sudo apt update
15+
sudo apt install libxml2-dev mm-common clang-9
16+
export CXX=clang++-9
17+
./autogen.sh --enable-warnings=fatal
18+
make
19+
- name: Test
20+
run: make check
21+
- name: Distcheck
22+
run: |
23+
# distcheck runs configure again so we need to specify CXX again.
24+
export CXX=clang++-9
25+
make distcheck

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "CI: autotools: gcc 7"
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-18.04
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Build
13+
run: |
14+
sudo apt update
15+
sudo apt install libxml2-dev mm-common g++-7
16+
export CXX=g++-7
17+
./autogen.sh --enable-warnings=fatal
18+
make
19+
- name: Test
20+
run: make check
21+
- name: Distcheck
22+
run: |
23+
# distcheck runs configure again so we need to specify CXX again.
24+
export CXX=g++-7
25+
make distcheck

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "CI: autotools: gcc 8"
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-18.04
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Build
13+
run: |
14+
sudo apt update
15+
sudo apt install libxml2-dev mm-common g++-8
16+
export CXX=g++-8
17+
./autogen.sh --enable-warnings=fatal
18+
make
19+
- name: Test
20+
run: make check
21+
- name: Distcheck
22+
run: |
23+
# distcheck runs configure again so we need to specify CXX again.
24+
export CXX=g++-8
25+
make distcheck

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "CI: autotools: gcc 9"
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+
sudo apt update
15+
sudo apt install libxml2-dev mm-common g++-9
16+
export CXX=g++-9
17+
./autogen.sh --enable-warnings=fatal
18+
make
19+
- name: Test
20+
run: make check
21+
- name: Distcheck
22+
run: |
23+
# distcheck runs configure again so we need to specify CXX again.
24+
export CXX=g++-9
25+
make distcheck

0 commit comments

Comments
 (0)