diff options
author | Denys Fedoryshchenko <denys.f@collabora.com> | 2024-04-10 00:59:40 +0300 |
---|---|---|
committer | Denys Fedoryshchenko <denys.f@collabora.com> | 2024-04-10 01:34:05 +0300 |
commit | ce3ee7595c1239a20de589c95dd8ccce38ae49e7 (patch) | |
tree | 9c7a901ead246d0d6913f3c0d9ce0142346e88dc /.github/workflows | |
parent | 410367e6851e8fb386abecb88369d6fa4e9871b9 (diff) | |
download | accel-ppp-ce3ee7595c1239a20de589c95dd8ccce38ae49e7.tar.gz accel-ppp-ce3ee7595c1239a20de589c95dd8ccce38ae49e7.zip |
workflows: Add CI build in Alpine
As we fixed musl compatibility, we can add also basic check
if accel keep working in Alpine Linux
Also update default config, enable connlimit and place it
before pptp, otherwise Alpine generate error:
```
[2024-04-09 22:30:09.911]loader: failed to load 'pptp': Error relocating /usr/local/lib64/accel-ppp/libpptp.so: connlimit_check: symbol not found
```
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build-and-run.yml | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/.github/workflows/build-and-run.yml b/.github/workflows/build-and-run.yml index 8ddbafae..2fbc9388 100644 --- a/.github/workflows/build-and-run.yml +++ b/.github/workflows/build-and-run.yml @@ -77,7 +77,8 @@ jobs: path: build/accel-ppp_*.deb if-no-files-found: error - Build-in-Container: + # Debian based distros + Build-in-Container-Debian: #if: ${{ false }} # disable for now strategy: fail-fast: false @@ -215,3 +216,38 @@ jobs: run: sleep 1 - name: Check accel-ppp stat run: accel-cmd show stat + + Build-in-Container-Alpine: + runs-on: ubuntu-latest + container: + image: alpine:latest + steps: + - name: Install build tools + run: > + apk update && apk add --no-cache git cmake make g++ pcre-dev libressl-dev linux-headers libucontext-dev lua5.1-dev + - name: Check out repository code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: mkdir build + run: mkdir build + - name: Disable git security warnings + run: git config --global --add safe.directory '*' + - name: cmake + working-directory: ./build + run: > + cmake -DBUILD_IPOE_DRIVER=FALSE -DBUILD_VLAN_MON_DRIVER=FALSE -DCMAKE_INSTALL_PREFIX=/usr + -DKDIR=/usr/src/linux-headers-`uname -r` + -DLUA=TRUE -DSHAPER=FALSE -DRADIUS=TRUE .. + - name: make and install + working-directory: ./build + run: make && make install + - name: Copy default config + run: cp accel-pppd/accel-ppp.conf /etc/accel-ppp.conf + - name: Start accel-ppp with default config + run: accel-pppd -d -c /etc/accel-ppp.conf + - name: Sleep for 1 sec + run: sleep 1 + - name: Check accel-ppp stat + run: accel-cmd show stat +
\ No newline at end of file |