diff options
author | Denys Fedoryshchenko <denys.f@collabora.com> | 2024-08-22 11:47:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-22 11:47:02 +0300 |
commit | 2d38a77c008524e293e0dc4b1e46c9093e7a9457 (patch) | |
tree | d349e147fe7dd617fde4b7d50cce8916dc07e0c4 /.github | |
parent | a4980e9db708c05192e3e7c624983983b6816123 (diff) | |
parent | da6c31ee1daeca9a1648a7347d0b757736ba6dff (diff) | |
download | accel-ppp-2d38a77c008524e293e0dc4b1e46c9093e7a9457.tar.gz accel-ppp-2d38a77c008524e293e0dc4b1e46c9093e7a9457.zip |
Merge pull request #176 from svlobanov/ci-gentoo
ci: add build in gentoo container
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build-and-run.yml | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/.github/workflows/build-and-run.yml b/.github/workflows/build-and-run.yml index fb6dd798..591d8cbf 100644 --- a/.github/workflows/build-and-run.yml +++ b/.github/workflows/build-and-run.yml @@ -248,4 +248,41 @@ jobs: run: sleep 1 - name: Check accel-ppp stat run: accel-cmd show stat -
\ No newline at end of file + + Build-in-Container-Gentoo: + runs-on: ubuntu-24.04 + container: + image: gentoo/stage3 + steps: + - name: Prepare gentoo + run: getuto && emerge --sync + - name: Install build tools + run: | + emerge -g --autounmask-write sys-kernel/gentoo-kernel-bin || (etc-update --verbose --automode -5 && emerge -g sys-kernel/gentoo-kernel-bin) + emerge -g dev-vcs/git dev-libs/libpcre dev-build/cmake dev-lang/lua:5.1 + - 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/linux + -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 |