Skip to content

Commit 129399c

Browse files
committed
ci: add a warmup build
The matrix jobs results in a large amount of jobs being started at the same time. Running all jobs in parallel is not ideal to leverage the OE sstate cache. For any common tasks (native, armv8, .. ) when the object is missing from the sstate cache, it's likely going to be a miss for several jobs. As a result, each of them will build the missed object, and each of them will attempt to create the object in the sstate cache. Instead, with this change, we first build for the qcs8300 platform, for both BSP variants. If these builds succeed we carry on with the other machines/configs, with the hope that the sstate cache hit will be better. Signed-off-by: Nicolas Dechesne <[email protected]>
1 parent 3bb0972 commit 129399c

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,32 @@ env:
1111
QLI_VERSION: QLI.1.4
1212

1313
jobs:
14+
build_warmup:
15+
if: github.repository == 'qualcomm-linux/meta-qcom-3rdparty'
16+
runs-on: [self-hosted, x86]
17+
strategy:
18+
fail-fast: true
19+
matrix:
20+
machine:
21+
- qcs8300-ride-sx
22+
bsp:
23+
- custom
24+
- base
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Run build
29+
uses: ./.github/actions/compile
30+
with:
31+
machine: ${{matrix.machine}}
32+
bsp: ${{matrix.bsp}}
33+
cache_dir: ${CACHE_DIR}
34+
manifest_url: ${MANIFEST_URL}
35+
manifest_branch: ${MANIFEST_BRANCH}
36+
qli_version: ${QLI_VERSION}
37+
1438
build:
39+
needs: build_warmup
1540
if: github.repository == 'qualcomm-linux/meta-qcom-3rdparty'
1641
runs-on: [self-hosted, x86]
1742
strategy:
@@ -23,14 +48,11 @@ jobs:
2348
- qcs9075-ride-sx
2449
- qcs9075-rb8-core-kit
2550
- qcs9100-ride-sx
26-
- qcs8300-ride-sx
2751
bsp:
2852
- custom
2953
include:
3054
- machine: qcs9100-ride-sx
3155
bsp: base
32-
- machine: qcs8300-ride-sx
33-
bsp: base
3456
steps:
3557
- uses: actions/checkout@v4
3658

0 commit comments

Comments
 (0)