]> git.ozlabs.org Git - ppp.git/blob - .github/workflows/buildroot.yaml
pppd: Fix SIGSEGV in EAP-TLS code when TLS verify method is not specified
[ppp.git] / .github / workflows / buildroot.yaml
1 name: Buildroot
2 on: [push, pull_request]
3
4 jobs:
5   buildroot:
6     runs-on: ubuntu-latest
7     strategy:
8       matrix:
9         defconfig_name: [qemu_x86_defconfig, qemu_x86_64_defconfig, raspberrypi4_defconfig, raspberrypi4_64_defconfig, qemu_ppc64le_pseries_defconfig, qemu_mips32r2_malta_defconfig, qemu_mips64_malta_defconfig]
10         libc_name: [glibc, uclibc, musl]
11     steps:
12       - name: Checkout Buildroot sources
13         run: git clone --depth=1 --branch=2020.11.1 https://git.busybox.net/buildroot
14       - name: Select latest PPP version
15         working-directory: buildroot/package/pppd
16         run: |
17           # Allow package to build when musl libc is selected
18           sed -i '/depends on !BR2_TOOLCHAIN_USES_MUSL/d' Config.in
19           # Upstream version always needs OpenSSL
20           sed -i '/select BR2_PACKAGE_OPENSSL/c\\select BR2_PACKAGE_OPENSSL' Config.in
21           # Do not check for package hash, so there is no need to compute it
22           rm pppd.hash
23           # Buildroot patch is already applied upstream
24           rm -f 0001-pppd-Fix-bounds-check.patch
25           # Get package sources from head of master branch
26           sed -i "/PPPD_VERSION =/c\\PPPD_VERSION = ${GITHUB_SHA}" pppd.mk
27           sed -i '/PPPD_SITE =/c\\PPPD_SITE = https://github.com/paulusmack/ppp' pppd.mk
28           sed -i '9iPPPD_SITE_METHOD = git' pppd.mk
29           # Plugin rp-pppoe has been renamed in "pppoe"
30           sed -i 's/rp-pppoe/pppoe/g' pppd.mk
31       - name: Enable PPP build
32         working-directory: buildroot
33         run: |
34           # Enable all Buildroot PPP options as everything is built by upstream build system
35           echo "BR2_PACKAGE_PPPD=y" >> configs/${{ matrix.defconfig_name }}
36           echo "BR2_PACKAGE_PPPD_FILTER=y" >> configs/${{ matrix.defconfig_name }}
37           echo "BR2_PACKAGE_PPPD_RADIUS=y" >> configs/${{ matrix.defconfig_name }}
38           echo "BR2_PACKAGE_PPPD_OVERWRITE_RESOLV_CONF=y" >> configs/${{ matrix.defconfig_name }}
39       - name: Select glibc
40         if: ${{ matrix.libc_name == 'glibc' }}
41         working-directory: buildroot
42         run: echo "BR2_TOOLCHAIN_BUILDROOT_GLIBC=y" >> configs/${{ matrix.defconfig_name }}
43       - name: Select uClibc
44         if: ${{ matrix.libc_name == 'uclibc' }}
45         working-directory: buildroot
46         run: echo "BR2_TOOLCHAIN_BUILDROOT_UCLIBC=y" >> configs/${{ matrix.defconfig_name }}
47       - name: Select musl
48         if: ${{ matrix.libc_name == 'musl' }}
49         working-directory: buildroot
50         run: echo "BR2_TOOLCHAIN_BUILDROOT_MUSL=y" >> configs/${{ matrix.defconfig_name }}
51       - name: Configure Buildroot
52         working-directory: buildroot
53         run: make ${{ matrix.defconfig_name }}
54       - name: Build
55         working-directory: buildroot
56         run: make