final apline/musl patch attached пт, 11 июн. 2021 г. в 23:02, Илья Шипицин <chipits...@gmail.com>:
> it works :) > > oops · chipitsine/haproxy@2ce9681 (github.com) > <https://github.com/chipitsine/haproxy/runs/2805388200> > > I'll polish it a bit and will send final patch tomorrow > > пт, 11 июн. 2021 г. в 20:42, Илья Шипицин <chipits...@gmail.com>: > >> >> >> пт, 11 июн. 2021 г. в 20:34, William Lallemand <wlallem...@haproxy.com>: >> >>> On Fri, Jun 11, 2021 at 08:14:49PM +0500, Илья Шипицин wrote: >>> > I've found ubuntu musl package, so we can just link to it in CI, for >>> > example (I'll try) >>> > >>> >>> >>> Well, that won't give you the same environnement as a docker image, >>> with the same versions. I'll honestly prefer if we could do it with the >>> alpine image. >>> >> >> there's always gap between "what is tested" and "what is packaged". >> package maintainers add untested selinux patches and link against >> various libs. >> >> I agree with you that we should prefer to test on alpine natively. >> >> >>> >>> I you want to build with the musl-gcc wrapper you will need to link the >>> linux headers in the musl headers directory otherwise it won't work the >>> way their package is done. >>> >> >> >> >> >> >>> >>> -- >>> William Lallemand >>> >>
From 5b0db964a9328279d1c301b4c582a20983f7c329 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin <chipits...@gmail.com> Date: Sat, 12 Jun 2021 15:46:29 +0500 Subject: [PATCH] CI: github actions: enable alpine/musl builds on push builds are added. based on cirrus-ci patch sent by William Lallemand --- .github/workflows/musl.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/musl.yml diff --git a/.github/workflows/musl.yml b/.github/workflows/musl.yml new file mode 100644 index 000000000..9f6b0f52a --- /dev/null +++ b/.github/workflows/musl.yml @@ -0,0 +1,38 @@ +name: alpine/musl + +on: [push] + +jobs: + musl: + name: gcc + runs-on: ubuntu-latest + container: + image: alpine:latest + steps: + - uses: actions/checkout@master + - name: Install dependencies + run: apk add gcc make tar git python3 libc-dev linux-headers pcre-dev pcre2-dev openssl-dev lua5.3-dev grep socat curl + - name: Install VTest + run: scripts/build-vtest.sh + - name: Build + 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 + - 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 + - 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 -- 2.29.2.windows.2