Modified Buildroot PPPD package to use GitHub master branch.
[ppp.git] / .github / workflows / buildroot.yaml
1 name: Buildroot
2 on: [push]
3
4 jobs:
5   matrix_build:
6     runs-on: ubuntu-latest
7     steps:
8       - name: Checkout Buildroot sources
9         run: git clone --depth=1 --branch=2020.11.1 https://git.busybox.net/buildroot
10       - name: Select latest PPP version
11         working-directory: buildroot/package/pppd
12         run: |
13           # Allow package to build when musl libc is selected
14           sed -i '/depends on !BR2_TOOLCHAIN_USES_MUSL/d' Config.in
15           # Do not check for package hash, so there is no need to compute it
16           rm pppd.hash
17           # Get package sources from head of master branch
18           sed -i '/PPPD_VERSION =/c\\PPPD_VERSION = master' pppd.mk
19           sed -i '/PPPD_SITE =/c\\PPPD_SITE = https://github.com/paulusmack/ppp' pppd.mk
20           sed -i '9iPPPD_MUSL_SITE_METHOD = git' pppd.mk
21           ls
22           cat Config.in
23           cat pppd.mk