summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorSergey V. Lobanov <sergey@lobanov.in>2025-07-03 20:39:48 +0300
committerSergey V. Lobanov <sergey@lobanov.in>2025-07-03 20:43:43 +0300
commitd852c31d1fd3175f47d811f6ab51ef426a574894 (patch)
tree69f28616b69e7489813ea0023ee74c2d6c19e19f /.github/workflows
parente06f5b835eb3ef28a2489ca903bc410175225c11 (diff)
downloadaccel-ppp-d852c31d1fd3175f47d811f6ab51ef426a574894.tar.gz
accel-ppp-d852c31d1fd3175f47d811f6ab51ef426a574894.zip
ci: add fedora:rawhide build to build with latest kernel
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build-and-run.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/build-and-run.yml b/.github/workflows/build-and-run.yml
index 3dfebd86..758ec278 100644
--- a/.github/workflows/build-and-run.yml
+++ b/.github/workflows/build-and-run.yml
@@ -283,3 +283,38 @@ jobs:
run: sleep 1
- name: Check accel-ppp stat
run: accel-cmd show stat
+
+ Build-in-Container-Fedora:
+ runs-on: ubuntu-24.04
+ container:
+ image: fedora:rawhide
+ steps:
+ - name: Install build tools
+ run: |
+ dnf -y install git make cmake gcc pcre2-devel openssl-devel lua-devel kernel-devel
+ - name: Check out repository code
+ uses: actions/checkout@v4
+ 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=TRUE -DBUILD_VLAN_MON_DRIVER=TRUE -DCMAKE_INSTALL_PREFIX=/usr
+ -DCMAKE_INSTALL_SYSCONFDIR=/etc
+ -DKDIR=/usr/src/kernels/`ls -1 -t /usr/src/kernels | head -n 1`
+ -DLUA=TRUE -DSHAPER=TRUE -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