Ilya Shipitsin | b89c0e4 | 2021-06-12 15:46:29 +0500 | [diff] [blame] | 1 | name: alpine/musl |
| 2 | |
Tim Duesterhus | 662896e | 2021-10-16 18:10:27 +0200 | [diff] [blame] | 3 | on: |
| 4 | push: |
Ilya Shipitsin | b89c0e4 | 2021-06-12 15:46:29 +0500 | [diff] [blame] | 5 | |
Tim Duesterhus | 89c9d0a | 2021-10-16 18:10:26 +0200 | [diff] [blame] | 6 | permissions: |
| 7 | contents: read |
| 8 | |
Ilya Shipitsin | b89c0e4 | 2021-06-12 15:46:29 +0500 | [diff] [blame] | 9 | jobs: |
| 10 | musl: |
| 11 | name: gcc |
| 12 | runs-on: ubuntu-latest |
| 13 | container: |
| 14 | image: alpine:latest |
| 15 | steps: |
Tim Duesterhus | 5f4ddb5 | 2022-04-09 22:08:41 +0200 | [diff] [blame] | 16 | - uses: actions/checkout@v3 |
Tim Duesterhus | 662896e | 2021-10-16 18:10:27 +0200 | [diff] [blame] | 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 |