2021-06-12 10:46:29 +00:00
|
|
|
name: alpine/musl
|
|
|
|
|
2021-10-16 16:10:27 +00:00
|
|
|
on:
|
|
|
|
push:
|
2021-06-12 10:46:29 +00:00
|
|
|
|
2021-10-16 16:10:26 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-06-12 10:46:29 +00:00
|
|
|
jobs:
|
|
|
|
musl:
|
|
|
|
name: gcc
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: alpine:latest
|
2022-10-20 13:01:01 +00:00
|
|
|
options: --privileged --ulimit core=-1 --security-opt seccomp=unconfined
|
|
|
|
volumes:
|
|
|
|
- /tmp/core:/tmp/core
|
2021-06-12 10:46:29 +00:00
|
|
|
steps:
|
2022-10-20 13:01:01 +00:00
|
|
|
- name: Setup coredumps
|
|
|
|
run: |
|
|
|
|
ulimit -c unlimited
|
|
|
|
echo '/tmp/core/core.%h.%e.%t' > /proc/sys/kernel/core_pattern
|
2023-09-06 14:57:29 +00:00
|
|
|
- uses: actions/checkout@v4
|
2021-10-16 16:10:27 +00:00
|
|
|
- name: Install dependencies
|
2022-10-20 13:01:01 +00:00
|
|
|
run: apk add gcc gdb make tar git python3 libc-dev linux-headers pcre-dev pcre2-dev openssl-dev lua5.3-dev grep socat curl musl-dbg lua5.3-dbg
|
2021-10-16 16:10:27 +00:00
|
|
|
- name: Install VTest
|
|
|
|
run: scripts/build-vtest.sh
|
|
|
|
- name: Build
|
2022-10-20 13:01:01 +00:00
|
|
|
run: make -j$(nproc) TARGET=linux-musl DEBUG_CFLAGS='-ggdb3' CC=cc V=1 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
|
2021-10-16 16:10:27 +00:00
|
|
|
- name: Show version
|
|
|
|
run: ./haproxy -vv
|
|
|
|
- name: Show linked libraries
|
|
|
|
run: ldd haproxy
|
|
|
|
- name: Install problem matcher for VTest
|
|
|
|
# This allows one to more easily see which tests fail.
|
|
|
|
run: echo "::add-matcher::.github/vtest.json"
|
|
|
|
- name: Run VTest
|
|
|
|
id: vtest
|
|
|
|
run: make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel
|
2022-10-20 13:01:01 +00:00
|
|
|
- name: Show coredumps
|
|
|
|
if: ${{ failure() && steps.vtest.outcome == 'failure' }}
|
|
|
|
run: |
|
|
|
|
ls /tmp/core/
|
|
|
|
for file in /tmp/core/core.*; do
|
|
|
|
printf "::group::"
|
|
|
|
gdb -ex 'thread apply all bt full' ./haproxy $file
|
|
|
|
echo "::endgroup::"
|
|
|
|
done
|
2021-10-16 16:10:27 +00:00
|
|
|
- name: Show results
|
|
|
|
if: ${{ failure() }}
|
|
|
|
run: |
|
|
|
|
for folder in /tmp/haregtests-*/vtc.*; do
|
|
|
|
printf "::group::"
|
|
|
|
cat $folder/INFO
|
|
|
|
cat $folder/LOG
|
|
|
|
echo "::endgroup::"
|
|
|
|
done
|
|
|
|
shopt -s nullglob
|