blob: c106b1d05096e5e9ef1f0d1c9f150d5fa52d7fc3 [file] [log] [blame]
Ilya Shipitsinb89c0e42021-06-12 15:46:29 +05001name: alpine/musl
2
Tim Duesterhus662896e2021-10-16 18:10:27 +02003on:
4 push:
Ilya Shipitsinb89c0e42021-06-12 15:46:29 +05005
Tim Duesterhus89c9d0a2021-10-16 18:10:26 +02006permissions:
7 contents: read
8
Ilya Shipitsinb89c0e42021-06-12 15:46:29 +05009jobs:
10 musl:
11 name: gcc
12 runs-on: ubuntu-latest
13 container:
14 image: alpine:latest
15 steps:
Tim Duesterhus662896e2021-10-16 18:10:27 +020016 - uses: actions/checkout@master
17 - name: Install dependencies
18 run: apk add gcc make tar git python3 libc-dev linux-headers pcre-dev pcre2-dev openssl-dev lua5.3-dev grep socat curl
19 - name: Install VTest
20 run: scripts/build-vtest.sh
21 - name: Build
22 run: make -j$(nproc) CC=cc V=1 TARGET=linux-musl USE_LUA=1 LUA_INC=/usr/include/lua5.3 LUA_LIB=/usr/lib/lua5.3 USE_OPENSSL=1 USE_PCRE2=1 USE_PCRE2_JIT=1 USE_PROMEX=1
23 - name: Show version
24 run: ./haproxy -vv
25 - name: Show linked libraries
26 run: ldd haproxy
27 - name: Install problem matcher for VTest
28 # This allows one to more easily see which tests fail.
29 run: echo "::add-matcher::.github/vtest.json"
30 - name: Run VTest
31 id: vtest
32 run: make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel
33 - name: Show results
34 if: ${{ failure() }}
35 run: |
36 for folder in /tmp/haregtests-*/vtc.*; do
37 printf "::group::"
38 cat $folder/INFO
39 cat $folder/LOG
40 echo "::endgroup::"
41 done
42 shopt -s nullglob