]> git.ozlabs.org Git - ppp.git/blob - .github/workflows/buildroot.yaml
pppd.8: Document netmask option
[ppp.git] / .github / workflows / buildroot.yaml
1 name: Buildroot
2 on: [push, pull_request]
3
4 jobs:
5   buildroot:
6     name: Buildroot
7     runs-on: ubuntu-latest
8     strategy:
9       matrix:
10         defconfig_name:
11           - qemu_x86_defconfig
12           - qemu_x86_64_defconfig
13           - raspberrypi4_defconfig
14           - raspberrypi4_64_defconfig
15           - qemu_ppc64le_pseries_defconfig
16           - qemu_mips32r2_malta_defconfig
17           - qemu_mips64_malta_defconfig
18           - qemu_riscv32_virt_defconfig
19           - qemu_riscv64_virt_defconfig
20         libc_name:
21           - glibc
22           - uclibc
23           - musl
24     env:
25       CI_VERSION: v1.1
26       BUILDROOT_DIRECTORY_NAME: buildroot-${{ matrix.defconfig_name }}-${{ matrix.libc_name }}
27     steps:
28       - name: Retrieve the prebuilt Buildroot image
29         working-directory: /home/runner
30         run: |
31           wget https://github.com/ppp-project/ppp-ci/releases/download/${{ env.CI_VERSION }}/${{ env.BUILDROOT_DIRECTORY_NAME }}.tar.zst
32           tar --zstd --strip-components=2 -xf ${{ env.BUILDROOT_DIRECTORY_NAME }}.tar.zst
33       - name: Select the latest PPP upstream version
34         working-directory: /home/runner/${{ env.BUILDROOT_DIRECTORY_NAME }}/package/pppd
35         run: |
36           # Get package sources from head of current branch
37           sed -i "/PPPD_VERSION =/c\\PPPD_VERSION = ${GITHUB_SHA}" pppd.mk
38       - name: Trigger a PPP package rebuild
39         working-directory: /home/runner/${{ env.BUILDROOT_DIRECTORY_NAME }}/output/build
40         run: rm -rf pppd*
41       - name: Build
42         working-directory: /home/runner/${{ env.BUILDROOT_DIRECTORY_NAME }}
43         run: make