[f4ac390e] | 1 | name: CI build |
---|
| 2 | on: [push] |
---|
| 3 | jobs: |
---|
[2cc53cb] | 4 | debian-buster: |
---|
[f4ac390e] | 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 |
---|
[07fc5d3] | 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 |
---|
[f4ac390e] | 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 |
---|
[07fc5d3] | 34 | - name: store Apache logs |
---|
| 35 | uses: actions/upload-artifact@v1 |
---|
[f4ac390e] | 36 | if: failure() || cancelled() |
---|
| 37 | with: |
---|
[07fc5d3] | 38 | name: buster-apache-logs |
---|
[f4ac390e] | 39 | path: test/logs/ |
---|
[07fc5d3] | 40 | - name: store test log if cancelled |
---|
| 41 | uses: actions/upload-artifact@v1 |
---|
[f4ac390e] | 42 | if: cancelled() |
---|
| 43 | with: |
---|
[07fc5d3] | 44 | name: buster-test-log |
---|
[f4ac390e] | 45 | path: test/test-00_basic.log |
---|
[2cc53cb] | 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: |
---|
[07fc5d3] | 67 | name: fedora-config-log |
---|
[2cc53cb] | 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 |
---|
[0be2505] | 83 | - name: store Apache logs |
---|
| 84 | uses: actions/upload-artifact@v1 |
---|
[2cc53cb] | 85 | if: failure() || cancelled() |
---|
| 86 | with: |
---|
[07fc5d3] | 87 | name: fedora-apache-logs |
---|
[2cc53cb] | 88 | path: test/logs/ |
---|
[0be2505] | 89 | - name: store test log if cancelled |
---|
| 90 | uses: actions/upload-artifact@v1 |
---|
[2cc53cb] | 91 | if: cancelled() |
---|
| 92 | with: |
---|
[07fc5d3] | 93 | name: fedora-test-log |
---|
[2cc53cb] | 94 | path: test/test-00_basic.log |
---|