Skip to content

Commit 15c24ba

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. We are using a specific persistent folder, to avoid mixing sstate and downloads between QLI 1.x and QLI mainline. For this initial workflow, we attempt to build all machines with DISTRO=qcom-wayland and for the custom BSP. We can add all valid build combinations later. Similarly we can add realtime, robotics or image SDK later. The workflow uses actions/checkout which may not be appropriate, just testing that on Github to see how it behaves. Signed-off-by: Nicolas Dechesne <[email protected]>
1 parent 85a429a commit 15c24ba

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

.github/workflows/build.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
runs-on: [self-hosted, x86]
27+
name: ${{ matrix.machine }}
28+
steps:
29+
- uses: actions/checkout@v4
30+
31+
- name: Get manifest file
32+
run: |
33+
git clone --depth=1 ${MANIFEST_URL} -b ${MANIFEST_BRANCH}
34+
cd qcom-manifest
35+
MANIFEST_FILE=$(ls *${QLI_VERSION}*.xml | sort | grep -v -e realtime-linux -e qim-product-sdk -e robotics-product-sdk | tail -1)
36+
echo "Manifest file: ${MANIFEST_FILE}
37+
echo "MANIFEST_FILE=${MANIFEST_FILE}" >> "$GITHUB_ENV"
38+
39+
- name: Setup workspace and build
40+
run: |
41+
mkdir QLI
42+
cd QLI
43+
repo init -u ${MANIFEST_URL} -b ${MANIFEST_BRANCH} -m ${MANIFEST_FILE}
44+
repo sync
45+
mkdir -p ${CACHE_DIR}/{downloads,sstate-cache}
46+
ln -s ${CACHE_DIR}/downloads
47+
ln -s ${CACHE_DIR}/sstate-cache
48+
MACHINE=${{ matrix.machine }} DISTRO=qcom-wayland QCOM_SELECTED_BSP=custom source setup-environment
49+
bitbake-layers add-layer $GITHUB_WORKSPACE
50+
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)