summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build-and-run.yml38
-rw-r--r--accel-pppd/accel-ppp.conf4
2 files changed, 40 insertions, 2 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
diff --git a/accel-pppd/accel-ppp.conf b/accel-pppd/accel-ppp.conf
index e80ffd00..abfd1ac9 100644
--- a/accel-pppd/accel-ppp.conf
+++ b/accel-pppd/accel-ppp.conf
@@ -4,6 +4,8 @@ log_file
#log_tcp
#log_pgsql
+connlimit
+
pptp
l2tp
#sstp
@@ -25,7 +27,7 @@ pppd_compat
#shaper
#net-snmp
#logwtmp
-#connlimit
+
#ipv6_nd
#ipv6_dhcp