Skip to content

Commit

Permalink
Merge pull request #656 from lumag/CI-matrix-scarthgap
Browse files Browse the repository at this point in the history
Backport CI changes to the scarthgap branch
  • Loading branch information
lumag authored Sep 17, 2024
2 parents c5e2ea0 + 8a238ad commit 253441c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 8 deletions.
20 changes: 14 additions & 6 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 @@ -78,6 +81,13 @@ jobs:
- PREFERRED_PROVIDER_virtual/kernel := 'linux-${kernel}'
- INITRAMFS_IMAGE ?= 'initramfs-rootfs-image'
${tclibc}-${kernel}-noinitramfs: &${tclibc}-${kernel}-noinitramfs
local_conf:
- INHERIT += 'buildstats buildstats-summary'
- INHERIT:remove = 'rm_work'
- TCLIBC := '${tclibc}'
- PREFERRED_PROVIDER_virtual/kernel := 'linux-${kernel}'
EOF
done
done
Expand All @@ -93,14 +103,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 }
EOF
fi
done
done
done
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ jobs:
uses: ./.github/workflows/build-template.yml
with:
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
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,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 @@ -35,6 +45,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
8 changes: 7 additions & 1 deletion .github/workflows/premerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ jobs:
uses: ./.github/workflows/build-template.yml
with:
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
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 @@ -14,6 +14,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 253441c

Please sign in to comment.