Skip to content

Commit 76a7353

Browse files
committed
ci: initial build workflow
This is an initial workflow to build the QLI 1.x (kirkstone) branch along with meta-qcom-3rdparty. This is using a specific persistent folder, to avoid mixing sstate and downloads between QLI 1.x and QLI mainline. This initial workflow builds all valid combinations based on the QLI 1.3 release notes. E.g. - DISTRO=qcom-wayland - QCOM_SELECTED_BSP=custom for all machines - QCOM_SELECTED_BSP=base for a subset of the machines And only builds the qcom-console-image. This initial workflow only builds the regular manifest. Realtime, robotics or MM SDKs will be added later. Signed-off-by: Nicolas Dechesne <[email protected]>
1 parent 85a429a commit 76a7353

File tree

3 files changed

+80
-0
lines changed

3 files changed

+80
-0
lines changed

.github/workflows/build.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Build Qualcomm Linux
2+
3+
on:
4+
workflow_call:
5+
6+
env:
7+
CACHE_DIR: /srv/gh-runners/quic-yocto/3rdparty
8+
BASE_ARTIFACT_URL: "https://quic-yocto-fileserver-1029608027416.us-central1.run.app/${{ github.run_id }}"
9+
MANIFEST_URL: https://github.com/quic-yocto/qcom-manifest
10+
MANIFEST_BRANCH: qcom-linux-kirkstone
11+
QLI_VERSION: QLI.1.3
12+
13+
jobs:
14+
compile:
15+
if: github.repository == 'qualcomm-linux/meta-qcom-3rdparty'
16+
strategy:
17+
fail-fast: true
18+
matrix:
19+
machine:
20+
- qcs6490-rb3gen2-core-kit
21+
- qcs6490-rb3gen2-vision-kit
22+
- qcs9075-ride-sx
23+
- qcs9075-rb8-core-kit
24+
- qcs9100-ride-sx
25+
- qcs8300-ride-sx
26+
bsp:
27+
- custom
28+
include:
29+
- bsp: base
30+
machine: qcs9100-ride-sx
31+
- bsp: base
32+
machine: qcs8300-ride-sx
33+
runs-on: [self-hosted, x86]
34+
name: ${{ matrix.machine }} / ${{ matrix.bsp }}
35+
steps:
36+
- uses: actions/checkout@v4
37+
38+
- name: Get manifest file
39+
run: |
40+
git clone --depth=1 ${MANIFEST_URL} -b ${MANIFEST_BRANCH}
41+
cd qcom-manifest
42+
MANIFEST_FILE=$(ls *${QLI_VERSION}*.xml | sort | grep -v -e realtime-linux -e qim-product-sdk -e robotics-product-sdk | tail -1)
43+
echo "Manifest file: ${MANIFEST_FILE}"
44+
echo "MANIFEST_FILE=${MANIFEST_FILE}" >> "$GITHUB_ENV"
45+
46+
- name: Setup workspace
47+
run: |
48+
mkdir QLI
49+
cd QLI
50+
repo init -u ${MANIFEST_URL} -b ${MANIFEST_BRANCH} -m ${MANIFEST_FILE}
51+
repo sync
52+
mkdir -p ${CACHE_DIR}/{downloads,sstate-cache}
53+
ln -s ${CACHE_DIR}/downloads
54+
ln -s ${CACHE_DIR}/sstate-cache
55+
56+
- name: Build QLI
57+
run: |
58+
cd QLI
59+
MACHINE=${{ matrix.machine }} DISTRO=qcom-wayland QCOM_SELECTED_BSP=${{ matrix.bsp }} source setup-environment
60+
bitbake-layers add-layer $GITHUB_WORKSPACE
61+
bitbake qcom-console-image

.github/workflows/pr.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Build on PR
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build-pr:
8+
uses: ./.github/workflows/build.yml
9+

.github/workflows/push.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Build on push
2+
3+
on:
4+
push:
5+
branches:
6+
- kirkstone
7+
8+
jobs:
9+
build:
10+
uses: ./.github/workflows/build.yml

0 commit comments

Comments
 (0)