Skip to content

Commit 7e682d7

Browse files
committed
ci(linux): Add qcom-next daily build
Make linux.yml a reusable workflow and call it from a dedicated weekly mainline workflow linux-weekly-mainline.yml. Introduce a linux-daily-qcom-next.yml workflow for daily builds of qcom-next. Signed-off-by: Loïc Minier <loic.minier@oss.qualcomm.com>
1 parent ef3bbf7 commit 7e682d7

3 files changed

Lines changed: 51 additions & 4 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Daily qcom-next linux build
2+
3+
on:
4+
# run daily at 6:30am
5+
schedule:
6+
- cron: '30 6 * * *'
7+
8+
permissions:
9+
checks: write # linux.yml
10+
contents: read # linux.yml
11+
packages: read # linux.yml
12+
pull-requests: write # linux.yml
13+
14+
jobs:
15+
build:
16+
uses: ./.github/workflows/linux.yml
17+
with:
18+
kernel_name: qcom-next
19+
secrets: inherit
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Weekly mainline linux build
2+
3+
on:
4+
# run weekly on Monday at 6:30am
5+
schedule:
6+
- cron: '30 6 * * 1'
7+
8+
permissions:
9+
checks: write # linux.yml
10+
contents: read # linux.yml
11+
packages: read # linux.yml
12+
pull-requests: write # linux.yml
13+
14+
jobs:
15+
build:
16+
uses: ./.github/workflows/linux.yml
17+
with:
18+
kernel_name: mainline
19+
secrets: inherit

.github/workflows/linux.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name: Build Linux kernel deb and debos image
22

33
on:
4-
# run weekly on Monday at 8:30am
5-
schedule:
6-
- cron: '30 6 * * 1'
4+
workflow_call:
5+
inputs:
6+
kernel_name:
7+
description: 'Name of the kernel to build (default: mainline)'
8+
required: false
9+
type: string
10+
default: 'mainline'
711
# allow manual runs
812
workflow_dispatch:
913
inputs:
@@ -71,7 +75,12 @@ jobs:
7175
apt -y install git crossbuild-essential-arm64 make flex bison bc \
7276
libdw-dev libelf-dev libssl-dev libssl-dev:arm64 dpkg-dev \
7377
debhelper kmod python3 rsync coreutils
74-
scripts/build-linux-deb.py \
78+
EXTRA_ARGS=""
79+
if [ "$KERNEL_NAME" = "qcom-next" ]; then
80+
# use qcom-next specific config fragment, and git repo + branch
81+
EXTRA_ARGS="--qcom-next qcom.config"
82+
fi
83+
scripts/build-linux-deb.py $EXTRA_ARGS \
7584
kernel-configs/qemu-boot.config \
7685
kernel-configs/qcom-imsdk.config \
7786
kernel-configs/systemd-boot.config

0 commit comments

Comments
 (0)