-
Notifications
You must be signed in to change notification settings - Fork 160
79 lines (71 loc) · 2.15 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: CI
on:
push:
pull_request:
schedule:
- cron: '0 23 * * 5' # Every Friday at 23:00
jobs:
build:
runs-on: ubuntu-latest
steps:
# Looks like Github Actions leaks fds to child processes
# https://github.com/actions/runner/issues/1188
- run: ls -l /proc/self/fd
# Build and test in Ubuntu VM provided by Github CI
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Make "git describe" work
- run: sudo apt-get install -qq pandoc cppcheck
- run: make
- run: make test
- run: git clean -dxff
# And also build in a number of docker containers of older
# distributions
- name: Build and test in Debian Bullseye
uses: addnab/docker-run-action@v3
with:
image: debian:bullseye
options: -v ${{ github.workspace }}:/work
run: |
set -ex
apt-get -qq update > /dev/null < /dev/null
apt-get -qq install make gcc golang git ca-certificates > /dev/null < /dev/null
cd /work
make
make test
- run: git clean -dxff
- name: Build and test in Amazon Linux 2
uses: addnab/docker-run-action@v3
with:
image: amazonlinux:2
options: -v ${{ github.workspace }}:/work
run: |
set -ex
yum -y -q install make gcc golang git
cd /work
git config --global --add safe.directory /work # Fix for: fatal: detected dubious ownership in repository at '/work'
make
make test
- run: git clean -dxff
- name: Build in Oracle Linux 7 (similar to RHEL 7, CentOS 7)
uses: addnab/docker-run-action@v3
with:
image: oraclelinux:7
options: -v ${{ github.workspace }}:/work
run: |
set -ex
yum -y -q install make gcc git
cd /work
make
- run: git clean -dxff
- name: Build in Oracle Linux 8 (similar to RHEL 8, CentOS 8)
uses: addnab/docker-run-action@v3
with:
image: oraclelinux:8
options: -v ${{ github.workspace }}:/work
run: |
set -ex
dnf -y -q install make gcc git
cd /work
make
- run: git clean -dxff