1 | name: CI build |
---|
2 | on: [push] |
---|
3 | jobs: |
---|
4 | debian-buster: |
---|
5 | runs-on: ubuntu-latest |
---|
6 | container: debian:buster |
---|
7 | steps: |
---|
8 | - uses: actions/checkout@v2 |
---|
9 | - name: network overview |
---|
10 | run: | |
---|
11 | ip addr show |
---|
12 | cat /etc/hosts |
---|
13 | - name: install dependencies |
---|
14 | run: | |
---|
15 | apt-get update |
---|
16 | apt-get -y install python3-yaml apache2-bin apache2-dev curl gnutls-bin libapr1-dev libgnutls28-dev openssl pandoc pkg-config procps softhsm2 |
---|
17 | - name: autoreconf |
---|
18 | run: autoreconf -fiv |
---|
19 | - name: configure |
---|
20 | run: TEST_IP=127.0.0.1 ./configure |
---|
21 | - name: store config.log |
---|
22 | uses: actions/upload-artifact@v1 |
---|
23 | if: failure() |
---|
24 | with: |
---|
25 | name: buster-config-log |
---|
26 | path: config.log |
---|
27 | - name: make |
---|
28 | run: make |
---|
29 | - name: set mutex |
---|
30 | run: | |
---|
31 | echo "Mutex sem default" >test/apache-conf/github_mutex.conf |
---|
32 | - name: make check |
---|
33 | run: VERBOSE=1 make check |
---|
34 | - name: store Apache logs |
---|
35 | uses: actions/upload-artifact@v1 |
---|
36 | if: failure() || cancelled() |
---|
37 | with: |
---|
38 | name: buster-apache-logs |
---|
39 | path: test/logs/ |
---|
40 | - name: store test log if cancelled |
---|
41 | uses: actions/upload-artifact@v1 |
---|
42 | if: cancelled() |
---|
43 | with: |
---|
44 | name: buster-test-log |
---|
45 | path: test/test-00_basic.log |
---|
46 | fedora-31: |
---|
47 | runs-on: ubuntu-latest |
---|
48 | container: fedora:31 |
---|
49 | steps: |
---|
50 | - uses: actions/checkout@v2 |
---|
51 | - name: install dependencies |
---|
52 | run: | |
---|
53 | dnf -y group install "C Development Tools and Libraries" |
---|
54 | dnf -y install curl gnutls-devel gnutls-utils httpd-devel iproute python3-pyyaml redhat-rpm-config softhsm |
---|
55 | - name: network overview |
---|
56 | run: | |
---|
57 | ip addr show |
---|
58 | cat /etc/hosts |
---|
59 | - name: autoreconf |
---|
60 | run: autoreconf -fiv |
---|
61 | - name: configure |
---|
62 | run: TEST_IP=127.0.0.1 ./configure |
---|
63 | - name: store config.log |
---|
64 | uses: actions/upload-artifact@v1 |
---|
65 | if: failure() |
---|
66 | with: |
---|
67 | name: fedora-config-log |
---|
68 | path: config.log |
---|
69 | - name: make |
---|
70 | run: make |
---|
71 | - name: set mutex |
---|
72 | run: | |
---|
73 | echo "Mutex sem default" >test/apache-conf/github_mutex.conf |
---|
74 | - name: configure extra modules needed for Fedora |
---|
75 | run: | |
---|
76 | cat - >test/apache-conf/fedora.conf <<EOF |
---|
77 | LoadModule log_config_module \${AP_LIBEXECDIR}/mod_log_config.so |
---|
78 | LoadModule logio_module \${AP_LIBEXECDIR}/mod_logio.so |
---|
79 | LoadModule unixd_module \${AP_LIBEXECDIR}/mod_unixd.so |
---|
80 | EOF |
---|
81 | - name: make check |
---|
82 | run: VERBOSE=1 make check |
---|
83 | - name: store Apache logs |
---|
84 | uses: actions/upload-artifact@v1 |
---|
85 | if: failure() || cancelled() |
---|
86 | with: |
---|
87 | name: fedora-apache-logs |
---|
88 | path: test/logs/ |
---|
89 | - name: store test log if cancelled |
---|
90 | uses: actions/upload-artifact@v1 |
---|
91 | if: cancelled() |
---|
92 | with: |
---|
93 | name: fedora-test-log |
---|
94 | path: test/test-00_basic.log |
---|