Skip to content

Commit fe7e3bd

Browse files
authored
Github workflow: build both Poky and Qcom DISTRO configs (#935)
Add another axis to the CI matrix: distro.name and have a companion variable to add optional extra yaml files. The DISTRO in meta-qcom-distro needs `distro.yml`, while the default Poky-that-isn't-poky-anymore does not need an extra yaml.
2 parents 7e898d6 + e3acf89 commit fe7e3bd

File tree

7 files changed

+19
-14
lines changed

7 files changed

+19
-14
lines changed

.github/workflows/build-yocto.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,13 @@ jobs:
9696
- qrb2210-rb1-core-kit
9797
- qcom-armv8a
9898
- qcom-armv7a
99+
distro:
100+
- name: poky-altcfg
101+
yamlfile: ""
102+
- name: qcom
103+
yamlfile: 'ci/distro.yml:'
99104
runs-on: [self-hosted, x86]
100-
name: ${{ matrix.machine }}/poky-altcfg
105+
name: ${{ matrix.machine }}/${{ matrix.distro.name }}
101106
steps:
102107
- uses: actions/checkout@v4
103108
with:
@@ -116,7 +121,7 @@ jobs:
116121
mkdir $KAS_WORK_DIR
117122
${KAS_CONTAINER} dump --resolve-env --resolve-local --resolve-refs \
118123
ci/mirror.yml:ci/${{ matrix.machine }}.yml > kas-build.yml
119-
${KAS_CONTAINER} build ci/mirror.yml:ci/${{ matrix.machine }}.yml
124+
${KAS_CONTAINER} build ci/mirror.yml:${{ matrix.distro.yamlfile }}ci/${{ matrix.machine }}.yml
120125
ci/kas-container-shell-helper.sh ci/yocto-pybootchartgui.sh
121126
mv $KAS_WORK_DIR/build/buildchart.svg .
122127
@@ -126,12 +131,12 @@ jobs:
126131
127132
- uses: actions/upload-artifact@v4
128133
with:
129-
name: buildchart-${{ matrix.machine }}
134+
name: buildchart-${{ matrix.distro.name }}-${{ matrix.machine }}
130135
path: buildchart.svg
131136

132137
- uses: actions/upload-artifact@v4
133138
with:
134-
name: kas-build-${{ matrix.machine }}
139+
name: kas-build-${{ matrix.distro.name }}-${{ matrix.machine }}
135140
path: kas-build.yml
136141

137142
- name: Stage build artifacts for publishing
@@ -140,8 +145,8 @@ jobs:
140145
# expects file to be relative to our PWD. deploy_dir is outside
141146
# that, so we move things around:
142147
deploy_dir=../kas/build/tmp/deploy/images/${{matrix.machine}}
143-
uploads_dir=./uploads
144-
mkdir $uploads_dir
148+
uploads_dir=./uploads/${{ matrix.distro.name }}
149+
mkdir -p $uploads_dir
145150
find $deploy_dir/ -maxdepth 1 -name "*.rootfs*.qcomflash" -exec rm -rf {} \;
146151
cp buildchart.svg kas-build.yml $deploy_dir/
147152
mv $deploy_dir $uploads_dir/

ci/lava/dragonboard-410c/boot.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ actions:
77
boot:
88
headers:
99
Authentication: Q_GITHUB_TOKEN
10-
url: "{{BUILD_DOWNLOAD_URL}}/qcom-armv8a/boot-apq8016-sbc-qcom-armv8a.img"
10+
url: "{{BUILD_DOWNLOAD_URL}}/poky-altcfg/qcom-armv8a/boot-apq8016-sbc-qcom-armv8a.img"
1111
rootfs:
1212
headers:
1313
Authentication: Q_GITHUB_TOKEN
14-
url: "{{BUILD_DOWNLOAD_URL}}/qcom-armv8a/core-image-base-qcom-armv8a.rootfs.ext4.gz"
14+
url: "{{BUILD_DOWNLOAD_URL}}/poky-altcfg/qcom-armv8a/core-image-base-qcom-armv8a.rootfs.ext4.gz"
1515
compression: gz
1616
postprocess:
1717
docker:

ci/lava/dragonboard-820c/boot.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ actions:
77
boot:
88
headers:
99
Authentication: Q_GITHUB_TOKEN
10-
url: "{{BUILD_DOWNLOAD_URL}}/qcom-armv8a/boot-apq8096-db820c-qcom-armv8a.img"
10+
url: "{{BUILD_DOWNLOAD_URL}}/poky-altcfg/qcom-armv8a/boot-apq8096-db820c-qcom-armv8a.img"
1111
rootfs:
1212
headers:
1313
Authentication: Q_GITHUB_TOKEN
14-
url: "{{BUILD_DOWNLOAD_URL}}/qcom-armv8a/core-image-base-qcom-armv8a.rootfs.ext4.gz"
14+
url: "{{BUILD_DOWNLOAD_URL}}/poky-altcfg/qcom-armv8a/core-image-base-qcom-armv8a.rootfs.ext4.gz"
1515
compression: gz
1616
postprocess:
1717
docker:

ci/lava/qcs6490-rb3gen2-core-kit/boot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ actions:
44
image:
55
headers:
66
Authentication: Q_GITHUB_TOKEN
7-
url: "{{BUILD_DOWNLOAD_URL}}/{{DEVICE_TYPE}}/core-image-base-{{DEVICE_TYPE}}.rootfs.qcomflash.tar.gz"
7+
url: "{{BUILD_DOWNLOAD_URL}}/poky-altcfg/{{DEVICE_TYPE}}/core-image-base-{{DEVICE_TYPE}}.rootfs.qcomflash.tar.gz"
88
postprocess:
99
docker:
1010
image: ghcr.io/foundriesio/lava-lmp-sign:main

ci/lava/qcs9075-iq-9075-evk/boot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ actions:
44
image:
55
headers:
66
Authentication: Q_GITHUB_TOKEN
7-
url: "{{BUILD_DOWNLOAD_URL}}/{{DEVICE_TYPE}}/core-image-base-{{DEVICE_TYPE}}.rootfs.qcomflash.tar.gz"
7+
url: "{{BUILD_DOWNLOAD_URL}}/poky-altcfg/{{DEVICE_TYPE}}/core-image-base-{{DEVICE_TYPE}}.rootfs.qcomflash.tar.gz"
88
postprocess:
99
docker:
1010
image: ghcr.io/foundriesio/lava-lmp-sign:main

ci/lava/qcs9100-ride-sx/boot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ actions:
44
image:
55
headers:
66
Authentication: Q_GITHUB_TOKEN
7-
url: "{{BUILD_DOWNLOAD_URL}}/{{DEVICE_TYPE}}/core-image-base-{{DEVICE_TYPE}}.rootfs.qcomflash.tar.gz"
7+
url: "{{BUILD_DOWNLOAD_URL}}/poky-altcfg/{{DEVICE_TYPE}}/core-image-base-{{DEVICE_TYPE}}.rootfs.qcomflash.tar.gz"
88
postprocess:
99
docker:
1010
image: ghcr.io/foundriesio/lava-lmp-sign:main

ci/lava/qrb2210-rb1-core-kit/boot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ actions:
44
image:
55
headers:
66
Authentication: Q_GITHUB_TOKEN
7-
url: "{{BUILD_DOWNLOAD_URL}}/{{DEVICE_TYPE}}/core-image-base-{{DEVICE_TYPE}}.rootfs.qcomflash.tar.gz"
7+
url: "{{BUILD_DOWNLOAD_URL}}/poky-altcfg/{{DEVICE_TYPE}}/core-image-base-{{DEVICE_TYPE}}.rootfs.qcomflash.tar.gz"
88
postprocess:
99
docker:
1010
image: ghcr.io/foundriesio/lava-lmp-sign:main

0 commit comments

Comments
 (0)