summaryrefslogtreecommitdiff
path: root/.github/workflows/build-and-run.yml
diff options
context:
space:
mode:
authorDmitriy Eshenko <dmitriy.eshenko@accel-ppp.org>2024-04-14 18:24:50 +0300
committerGitHub <noreply@github.com>2024-04-14 18:24:50 +0300
commitfc78e082352168a2051928d25eaf0c0b09d20873 (patch)
treeadfc7b0b13e78e516d92b584c67991f3c7ee358c /.github/workflows/build-and-run.yml
parent74a58e70f03db19263d377dbad0ca289ea07a7ad (diff)
parentce3ee7595c1239a20de589c95dd8ccce38ae49e7 (diff)
downloadaccel-ppp-fc78e082352168a2051928d25eaf0c0b09d20873.tar.gz
accel-ppp-fc78e082352168a2051928d25eaf0c0b09d20873.zip
Merge pull request #130 from nuclearcat/add-musl-compatibility
musl: Add musl compatibility
Diffstat (limited to '.github/workflows/build-and-run.yml')
-rw-r--r--.github/workflows/build-and-run.yml38
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