Skip to content

Commit

Permalink
CI: also test the linux-yocto kernel
Browse files Browse the repository at this point in the history
Add linux-yocto kernel into the CI loop.

Signed-off-by: Dmitry Baryshkov <[email protected]>
  • Loading branch information
lumag committed Nov 3, 2023
1 parent f4f1ac6 commit e8df7ea
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ env:
POKY_URL: https://git.yoctoproject.org/poky
DISTRO: poky
TCLIBC: glibc musl
KERNELS: linaro-qcomlt yocto

jobs:
build:
Expand Down Expand Up @@ -77,21 +78,37 @@ jobs:
EOF
done
for kernel in ${KERNELS}; do
cat << EOF >> plan.yaml
${kernel}: &${kernel}
local_conf:
- PREFERRED_PROVIDER_virtual/kernel := 'linux-${kernel}'
EOF
done
cat << EOF >> plan.yaml
jobs:
EOF
# FIXME: loop over kernels instead of hardcoding them, need to support armv7a and modem first
for tclibc in ${TCLIBC}; do
cat << EOF >> plan.yaml
- name: ${tclibc}
bakes:
EOF
for machine in ${{inputs.machines}}; do
cat << EOF >> plan.yaml
- { <<: [*commondata, *${tclibc}], machine: ${machine}, name: ${machine}-${tclibc} }
- { <<: [*commondata, *${tclibc}, *linaro-qcomlt], machine: ${machine}, name: ${machine}-${tclibc} }
EOF
if [ "${machine}" = "qcom-armv8a" ] ; then
cat << EOF >> plan.yaml
- { <<: [*commondata, *${tclibc}, *yocto], machine: qcom-armv8a, name: qcom-armv8a-${tclibc} }
EOF
fi
done
done
echo "Ready to submit this Tux Plan:"
cat plan.yaml
- name: Run build
Expand Down

0 comments on commit e8df7ea

Please sign in to comment.