source: mod_gnutls/.github/workflows/build.yml @ b14f6ae

asyncio
Last change on this file since b14f6ae was b14f6ae, checked in by Fiona Klute <fiona.klute@…>, 18 months ago

CI: Run on pull_request events

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