]> git.ozlabs.org Git - ppp.git/blob - .github/workflows/buildroot.yaml
a80353b4d2f6d64a0839f7ea2c06b73ae2fd0f73
[ppp.git] / .github / workflows / buildroot.yaml
1 name: Buildroot
2 on: [push]
3
4 jobs:
5   matrix_build:
6     runs-on: ubuntu-latest
7     strategy:
8       matrix:
9         defconfig_name: [qemu_x86_defconfig, qemu_x86_64_defconfig]
10     steps:
11       - name: Checkout Buildroot sources
12         run: git clone --depth=1 --branch=2020.11.1 https://git.busybox.net/buildroot
13       - name: Select latest PPP version
14         working-directory: buildroot/package/pppd
15         run: |
16           # Allow package to build when musl libc is selected
17           sed -i '/depends on !BR2_TOOLCHAIN_USES_MUSL/d' Config.in
18           # Do not check for package hash, so there is no need to compute it
19           rm pppd.hash
20           # Get package sources from head of master branch
21           sed -i '/PPPD_VERSION =/c\\PPPD_VERSION = master' pppd.mk
22           sed -i '/PPPD_SITE =/c\\PPPD_SITE = https://github.com/paulusmack/ppp' pppd.mk
23           sed -i '9iPPPD_MUSL_SITE_METHOD = git' pppd.mk
24       - name: Enable PPP build
25         working-directory: buildroot
26         run: |
27           echo "BR2_PACKAGE_PPPD=y" >> configs/${{ matrix.defconfig_name }}
28           # TODO enable other PPP package options if needed
29           cat configs/${{ matrix.defconfig_name }}