source: mod_gnutls/.github/workflows/build.yml @ 22a737b

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

Detect usable loopback IPs during ./configure

  • Property mode set to 100644
File size: 2.5 KB
RevLine 
[f4ac390e]1name: CI build
[f4f837a]2on:
[b14f6ae]3  pull_request:
[f4f837a]4  push:
5    # don't run on packaging branches
6    branches-ignore:
7      - 'for-debian'
8      - 'debian/**'
9      - 'pristine-tar'
[f4ac390e]10jobs:
[57dec86]11  build:
12    strategy:
[e2666ba]13      fail-fast: false
[57dec86]14      matrix:
15        container:
16          - 'debian:buster'
[c4a6889]17          - 'debian:sid'
[d7ae3ed]18          - 'fedora:32'
[f4ac390e]19    runs-on: ubuntu-latest
[57dec86]20    container: ${{ matrix.container }}
21    name: ${{ matrix.container }}
[f4ac390e]22    steps:
23      - uses: actions/checkout@v2
[57dec86]24      - name: install dependencies (Debian)
25        if: startsWith(matrix.container, 'debian')
[f4ac390e]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
[57dec86]29      - name: install dependencies (Fedora)
30        if: startsWith(matrix.container, 'fedora')
[2cc53cb]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
[ed493e6]38      - name: find usable IPs for tests
39        run: |
[22a737b]40          echo "::set-env name=test_ips::$(python3 test/check_test_ips.py localhost $(hostname))"
[773e45a]41      - name: set prefix for container-specific artifacts
42        # this is because upload-artifact doesn't like ":" in file names
[2c94b65]43        env:
44          CONTAINER_NAME: ${{ matrix.container }}
[773e45a]45        run: |
[2c94b65]46          echo "::set-env name=artifact_prefix::$(echo ${CONTAINER_NAME} | sed s/:/-/)"
[2cc53cb]47      - name: autoreconf
48        run: autoreconf -fiv
49      - name: configure
[ed493e6]50        run: TEST_IP="${test_ips}" APACHE_MUTEX=pthread ./configure
[2cc53cb]51      - name: store config.log
52        uses: actions/upload-artifact@v1
53        if: failure()
54        with:
[2c94b65]55          name: ${{ env.artifact_prefix }}-config-log
[2cc53cb]56          path: config.log
57      - name: make
58        run: make
59      - name: make check
60        run: VERBOSE=1 make check
[0be2505]61      - name: store Apache logs
[2e96cec]62        uses: actions/upload-artifact@v2
[2cc53cb]63        if: failure() || cancelled()
64        with:
[773e45a]65          name: ${{ env.artifact_prefix }}-apache-logs
[2cc53cb]66          path: test/logs/
[2e96cec]67      - name: store test logs
68        uses: actions/upload-artifact@v2
69        if: failure() || cancelled()
[2cc53cb]70        with:
[2e96cec]71          name: ${{ env.artifact_prefix }}-test-logs
72          path: test/test-*.log
[2794787]73      - name: make distcheck
74        run: VERBOSE=1 make distcheck
Note: See TracBrowser for help on using the repository browser.