]> git.ozlabs.org Git - ppp.git/blobdiff - .github/workflows/buildroot.yaml
Enabled PPPD package in Buildroot defconfig.
[ppp.git] / .github / workflows / buildroot.yaml
index 6e17f8ee35c58f8eb9853e79006e56e78fbcdfd6..a80353b4d2f6d64a0839f7ea2c06b73ae2fd0f73 100644 (file)
@@ -4,6 +4,26 @@ on: [push]
 jobs:
   matrix_build:
     runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        defconfig_name: [qemu_x86_defconfig, qemu_x86_64_defconfig]
     steps:
       - name: Checkout Buildroot sources
         run: git clone --depth=1 --branch=2020.11.1 https://git.busybox.net/buildroot
+      - name: Select latest PPP version
+        working-directory: buildroot/package/pppd
+        run: |
+          # Allow package to build when musl libc is selected
+          sed -i '/depends on !BR2_TOOLCHAIN_USES_MUSL/d' Config.in
+          # Do not check for package hash, so there is no need to compute it
+          rm pppd.hash
+          # Get package sources from head of master branch
+          sed -i '/PPPD_VERSION =/c\\PPPD_VERSION = master' pppd.mk
+          sed -i '/PPPD_SITE =/c\\PPPD_SITE = https://github.com/paulusmack/ppp' pppd.mk
+          sed -i '9iPPPD_MUSL_SITE_METHOD = git' pppd.mk
+      - name: Enable PPP build
+        working-directory: buildroot
+        run: |
+          echo "BR2_PACKAGE_PPPD=y" >> configs/${{ matrix.defconfig_name }}
+          # TODO enable other PPP package options if needed
+          cat configs/${{ matrix.defconfig_name }}