blob: 8f6922486c183c1cfecd3ea96cfc90b22470211f [file] [log] [blame]
Ilya Shipitsinb89c0e42021-06-12 15:46:29 +05001name: alpine/musl
2
3on: [push]
4
5jobs:
6 musl:
7 name: gcc
8 runs-on: ubuntu-latest
9 container:
10 image: alpine:latest
11 steps:
12 - uses: actions/checkout@master
13 - name: Install dependencies
14 run: apk add gcc make tar git python3 libc-dev linux-headers pcre-dev pcre2-dev openssl-dev lua5.3-dev grep socat curl
15 - name: Install VTest
16 run: scripts/build-vtest.sh
17 - name: Build
18 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
19 - name: Show version
20 run: ./haproxy -vv
21 - name: Show linked libraries
22 run: ldd haproxy
23 - name: Install problem matcher for VTest
24 # This allows one to more easily see which tests fail.
25 run: echo "::add-matcher::.github/vtest.json"
26 - name: Run VTest
27 id: vtest
28 run: make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel
29 - name: Show results
30 if: ${{ failure() }}
31 run: |
32 for folder in /tmp/haregtests-*/vtc.*; do
33 printf "::group::"
34 cat $folder/INFO
35 cat $folder/LOG
36 echo "::endgroup::"
37 done
38 shopt -s nullglob