Skip to content

Commit

Permalink
CI: manually specify build matrix
Browse files Browse the repository at this point in the history
In order to be more flexible, manually specify build variants
(machine-libc-kernel-subtype)

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
  • Loading branch information
lumag committed Sep 14, 2024
1 parent 00b65b0 commit 3c5a909
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
machines:
required: true
type: string
variants:
required: true
type: string
url:
required: true
type: string
Expand Down Expand Up @@ -70,15 +73,15 @@ jobs:
for tclibc in ${TCLIBC}; do
for kernel in ${KERNELS}; do
cat << EOF >> plan.yaml
${tclibc}-${kernel}-initramfs: &${tclibc}-${kernel}
${tclibc}-${kernel}: &${tclibc}-${kernel}
local_conf:
- INHERIT += 'buildstats buildstats-summary'
- INHERIT:remove = 'rm_work'
- TCLIBC := '${tclibc}'
- PREFERRED_PROVIDER_virtual/kernel := 'linux-${kernel}'
- INITRAMFS_IMAGE ?= 'initramfs-rootfs-image'
${tclibc}-${kernel}: &${tclibc}-${kernel}-noinitramfs
${tclibc}-${kernel}-noinitramfs: &${tclibc}-${kernel}-noinitramfs
local_conf:
- INHERIT += 'buildstats buildstats-summary'
- INHERIT:remove = 'rm_work'
Expand All @@ -101,15 +104,12 @@ jobs:
bakes:
EOF
for machine in ${{inputs.machines}}; do
for variant in ${{inputs.variants}}; do
[ ${variant##${machine}-${tclibc}} == ${variant} ] && continue
cat << EOF >> plan.yaml
- { <<: [*commondata, *${tclibc}-linaro-qcomlt], machine: ${machine}, name: ${machine}-${tclibc} }
- { <<: [*commondata, *${variant#${machine}-}], machine: ${machine}, name: ${variant} }
EOF
if [ "${machine}" = "qcom-armv8a" -a "${{inputs.branch}}" = "master" ] ; then
cat << EOF >> plan.yaml
- { <<: [*commondata, *${tclibc}-yocto], machine: qcom-armv8a, name: qcom-armv8a-${tclibc}-yocto }
- { <<: [*commondata, *${tclibc}-yocto-noinitramfs], machine: qcom-armv8a, name: qcom-armv8a-${tclibc}-yocto-noinitramfs }
EOF
fi
done
done
done
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
host: debian-bookworm
images: core-image-base core-image-weston core-image-x11 initramfs-test-image initramfs-test-full-image initramfs-firmware-image initramfs-rootfs-image cryptodev-module esp-qcom-image
machines: qcom-armv8a qcom-armv7a-modem qcom-armv7a
variants: >-
qcom-armv8a-glibc-yocto qcom-armv8a-musl-yocto
qcom-armv7a-glibc-yocto qcom-armv7a-musl-yocto
qcom-armv7a-modem-glibc-linaro-qcomlt qcom-armv7a-modem-musl-linaro-qcomlt
qcom-armv8a-glibc-linaro-qcomlt
qcom-armv8a-glibc-yocto-noinitramfs
ref_type: branch
ref: master
branch: master
Expand All @@ -23,6 +29,12 @@ jobs:
host: debian-bookworm
images: core-image-base core-image-weston core-image-x11 initramfs-test-image initramfs-test-full-image initramfs-firmware-image initramfs-rootfs-image cryptodev-module esp-qcom-image
machines: qcom-armv8a qcom-armv7a-modem qcom-armv7a
variants: >-
qcom-armv8a-glibc-yocto qcom-armv8a-musl-yocto
qcom-armv7a-glibc-yocto qcom-armv7a-musl-yocto
qcom-armv7a-modem-glibc-linaro-qcomlt qcom-armv7a-modem-musl-linaro-qcomlt
qcom-armv8a-glibc-linaro-qcomlt
qcom-armv8a-glibc-yocto-noinitramfs
ref_type: branch
ref: scarthgap
branch: scarthgap
Expand All @@ -35,6 +47,10 @@ jobs:
host: debian-bookworm
images: core-image-base core-image-weston core-image-x11 initramfs-test-image initramfs-test-full-image initramfs-firmware-image initramfs-rootfs-image cryptodev-module
machines: qcom-armv8a sdx55-mtp qcom-armv7a
variants: >-
qcom-armv8a-glibc-linaro-qcomlt qcom-armv8a-musl-linaro-qcomlt
qcom-armv7a-glibc-linaro-qcomlt qcom-armv7a-musl-linaro-qcomlt
sdx55-mtp-modem-glibc-linaro-qcomlt sdx55-mtp-modem-musl-linaro-qcomlt
ref_type: branch
ref: kirkstone
branch: kirkstone
Expand All @@ -47,6 +63,8 @@ jobs:
host: debian-bookworm
images: core-image-base core-image-weston core-image-x11 initramfs-test-image initramfs-test-full-image cryptodev-module
machines: qcom-armv8a
variants: >-
qcom-armv8a-glibc-linaro-qcomlt qcom-armv8a-musl-linaro-qcomlt
ref_type: branch
ref: dunfell
branch: dunfell
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/premerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ jobs:
host: debian-bookworm
images: core-image-base core-image-weston core-image-x11 initramfs-test-image initramfs-test-full-image initramfs-firmware-image initramfs-rootfs-image cryptodev-module esp-qcom-image
machines: qcom-armv8a qcom-armv7a-modem qcom-armv7a
variants: >-
qcom-armv8a-glibc-yocto qcom-armv8a-musl-yocto
qcom-armv7a-glibc-yocto qcom-armv7a-musl-yocto
qcom-armv7a-modem-glibc-linaro-qcomlt qcom-armv7a-modem-musl-linaro-qcomlt
qcom-armv8a-glibc-linaro-qcomlt
qcom-armv8a-glibc-yocto-noinitramfs
ref: refs/pull/${{github.event.pull_request.number}}/merge
branch: ${{github.base_ref}}
url: ${{github.server_url}}/${{github.repository}}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ jobs:
host: debian-bookworm
images: core-image-base core-image-weston core-image-x11 initramfs-test-image initramfs-test-full-image initramfs-firmware-image initramfs-rootfs-image cryptodev-module
machines: qcom-armv8a qcom-armv7a-modem qcom-armv7a
variants: >-
qcom-armv8a-glibc-yocto qcom-armv8a-musl-yocto
qcom-armv7a-glibc-yocto qcom-armv7a-musl-yocto
qcom-armv7a-modem-glibc-linaro-qcomlt qcom-armv7a-modem-musl-linaro-qcomlt
qcom-armv8a-glibc-linaro-qcomlt
qcom-armv8a-glibc-yocto-noinitramfs
ref: ${{github.sha}}
ref_type: sha
branch: ${{github.ref_name}}
Expand Down

0 comments on commit 3c5a909

Please sign in to comment.