Skip to content

Commit fa03861

Browse files
SuMerefacchinm
authored andcommitted
fix: enable kernel builds on CI
1 parent ce95b27 commit fa03861

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/build-tester-images.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
GIT_REPO_KERNEL: https://github.com/arduino/linux-qcom
99
GIT_BRANCH_KERNEL: qcom-v6.16.7-unoq
1010
GIT_REPO_UBOOT: https://github.com/arduino/u-boot
11-
DEVICE_TREE_UBOOT: qcom/qrb2210-arduino-unoq
11+
DEVICE_TREE_UBOOT: qcom/qrb2210-arduino-imola
1212
OVERLAYS: arduino-unoq-releases
1313
RELEASE_DIR: debian-im
1414

@@ -23,13 +23,13 @@ on:
2323
description: Include arduino-app-cli docker images
2424
type: boolean
2525
default: false
26-
repository_dispatch:
27-
workflow_call:
28-
inputs:
2926
compile_kernel:
3027
description: Compile kernel and u-boot or reuse binaries from source repo
3128
type: boolean
3229
default: false
30+
repository_dispatch:
31+
workflow_call:
32+
3333

3434
# implicitely set all other permissions to none
3535
permissions:
@@ -89,7 +89,7 @@ jobs:
8989
# install build-dependencies; TODO: --no-install-recommends
9090
apt -y install git crossbuild-essential-arm64 make flex bison bc \
9191
libdw-dev libelf-dev libssl-dev libssl-dev:arm64 dpkg-dev \
92-
debhelper-compat kmod python3 rsync coreutils mkbootimg fwupd
92+
debhelper-compat kmod python3 rsync coreutils mkbootimg fwupd xxd
9393
GIT_REPO_KERNEL=${{ env.GIT_REPO_KERNEL }} GIT_BRANCH_KERNEL=${{ env.GIT_BRANCH_KERNEL }} \
9494
scripts/build-linux-deb.sh \
9595
kernel-configs/qcom-imsdk.config \
@@ -99,13 +99,23 @@ jobs:
9999
scripts/build-u-boot-rb1.sh
100100
cp u-boot/rb1-boot.img .
101101
rm linux-image-*dbg*.deb
102+
# Save the deb and u-boot images as artifact
102103
else
103104
echo "No kernel or u-boot build requested"
104105
cp precompiled/rb1-boot.img .
105106
cp precompiled/linux-image-*.deb .
106107
fi
107108
echo "KERNELPACKAGE=`dpkg-deb -f linux-image-*.deb Package | cut -f2`" >> $GITHUB_OUTPUT
108109
110+
- name: Archive kernel/u-boot artifacts
111+
uses: actions/upload-artifact@v4
112+
with:
113+
name: kernel-and-uboot
114+
path: |
115+
linux-image-*.deb
116+
rb1-boot.img
117+
if: ${{ github.event.inputs.compile_kernel == 'true' }}
118+
109119
- name: Setup local APT repo
110120
run: |
111121
set -ux -o pipefail

0 commit comments

Comments
 (0)