1 | name: CI build |
---|
2 | on: |
---|
3 | push: |
---|
4 | # don't run on packaging branches |
---|
5 | branches-ignore: |
---|
6 | - 'for-debian' |
---|
7 | - 'debian/**' |
---|
8 | - 'pristine-tar' |
---|
9 | jobs: |
---|
10 | build: |
---|
11 | strategy: |
---|
12 | fail-fast: false |
---|
13 | matrix: |
---|
14 | container: |
---|
15 | - 'debian:buster' |
---|
16 | - 'debian:sid' |
---|
17 | - 'fedora:32' |
---|
18 | runs-on: ubuntu-latest |
---|
19 | container: ${{ matrix.container }} |
---|
20 | name: ${{ matrix.container }} |
---|
21 | steps: |
---|
22 | - uses: actions/checkout@v2 |
---|
23 | - name: install dependencies (Debian) |
---|
24 | if: startsWith(matrix.container, 'debian') |
---|
25 | run: | |
---|
26 | apt-get update |
---|
27 | apt-get -y install python3-yaml apache2-bin apache2-dev curl gnutls-bin libapr1-dev libgnutls28-dev openssl pandoc pkg-config procps softhsm2 |
---|
28 | - name: install dependencies (Fedora) |
---|
29 | if: startsWith(matrix.container, 'fedora') |
---|
30 | run: | |
---|
31 | dnf -y group install "C Development Tools and Libraries" |
---|
32 | dnf -y install curl gnutls-devel gnutls-utils httpd-devel iproute python3-pyyaml redhat-rpm-config softhsm |
---|
33 | - name: network overview |
---|
34 | run: | |
---|
35 | ip addr show |
---|
36 | cat /etc/hosts |
---|
37 | - name: set prefix for container-specific artifacts |
---|
38 | # this is because upload-artifact doesn't like ":" in file names |
---|
39 | run: | |
---|
40 | echo "::set-env name=artifact_prefix::$(echo debian:sid | sed s/:/-/)" |
---|
41 | - name: autoreconf |
---|
42 | run: autoreconf -fiv |
---|
43 | - name: configure |
---|
44 | run: TEST_IP=127.0.0.1 APACHE_MUTEX=pthread ./configure |
---|
45 | - name: store config.log |
---|
46 | uses: actions/upload-artifact@v1 |
---|
47 | if: failure() |
---|
48 | with: |
---|
49 | name: ${{ matrix.container }}-config-log |
---|
50 | path: config.log |
---|
51 | - name: make |
---|
52 | run: make |
---|
53 | - name: make check |
---|
54 | run: VERBOSE=1 make check |
---|
55 | - name: store Apache logs |
---|
56 | uses: actions/upload-artifact@v2 |
---|
57 | if: failure() || cancelled() |
---|
58 | with: |
---|
59 | name: ${{ env.artifact_prefix }}-apache-logs |
---|
60 | path: test/logs/ |
---|
61 | - name: store test logs |
---|
62 | uses: actions/upload-artifact@v2 |
---|
63 | if: failure() || cancelled() |
---|
64 | with: |
---|
65 | name: ${{ env.artifact_prefix }}-test-logs |
---|
66 | path: test/test-*.log |
---|
67 | - name: make distcheck |
---|
68 | run: VERBOSE=1 make distcheck |
---|