Skip to content

Commit d2f48af

Browse files
Merge pull request #5 from ndechesne/kirkstone-ci
ci: initial build workflow
2 parents 58593ae + e2863cd commit d2f48af

File tree

3 files changed

+79
-0
lines changed

3 files changed

+79
-0
lines changed

.github/workflows/build.yml

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