Skip to content

Commit d042722

Browse files
committed
github workflow: build both Poky and Qcom DISTRO configs
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. Signed-off-by: Koen Kooi <[email protected]>
1 parent f320ca9 commit d042722

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
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/

0 commit comments

Comments
 (0)