Skip to content

Commit 5a476fa

Browse files
committed
ci: build crosstool (and cmake) as first step
To reduce duplicated effort, build crosstool (and cmake) in one step. Than download the crosstool artifact when we build all the actual toolchains so we can save some time not having to build crosstool for every toolchain build. Signed-off-by: Kumar Gala <[email protected]>
1 parent cbe286e commit 5a476fa

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.buildkite/pipeline-template.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
steps:
2+
- label: "$OS-$MACHINE-crosstool-cmake"
3+
key: "$OS-$MACHINE-crosstool-cmake"
4+
command:
5+
- ./go.sh cmake
6+
- buildkite-agent artifact upload cmake.$OS.$MACHINE.tar.bz2
7+
- ./go.sh crosstool
8+
- buildkite-agent artifact upload crosstool.$OS.$MACHINE.tar.bz2
9+
env:
10+
BUILDKITE_CLEAN_CHECKOUT: "true"
11+
plugins:
12+
- docker#v3.5.0:
13+
image: "zephyrprojectrtos/sdk-build:v1.0.1"
14+
propagate-environment: true
15+
user: buildkite-agent
16+
agents:
17+
- "queue=sdk-ng-$MACHINE"
18+
219
- label: "$OS-$MACHINE"
320
key: "$OS-$MACHINE"
21+
depends_on: "$OS-$MACHINE-crosstool-cmake"
422
command:
523
- >
624
case "$${BUILDKITE_PARALLEL_JOB}" in
@@ -20,15 +38,14 @@ steps:
2038
13) TARGET="xtensa_nxp_imx8m_adsp";;
2139
14) TARGET="xtensa_intel_s1000";;
2240
15) TARGET="mips";;
23-
16) TARGET="cmake";;
24-
17) TARGET="arc64";;
41+
16) TARGET="arc64";;
2542
esac
43+
- buildkite-agent artifact download crosstool.$OS.$MACHINE.tar.bz2 .
44+
- tar xvf crosstool.$OS.$MACHINE.tar.bz2
2645
- ./go.sh $${TARGET}
2746
- >
2847
if [ $${TARGET} = "tools" ]; then
2948
buildkite-agent artifact upload zephyr-sdk-$MACHINE-hosttools-standalone-0.9.sh;
30-
elif [ $${TARGET} = "cmake" ]; then
31-
buildkite-agent artifact upload cmake.$OS.$MACHINE.tar.bz2;
3249
else
3350
cd build/output
3451
case "$${TARGET}" in
@@ -44,7 +61,7 @@ steps:
4461
cd ../..
4562
buildkite-agent artifact upload $${TARGET}.$OS.$MACHINE.tar.bz2;
4663
fi
47-
parallelism: 18
64+
parallelism: 17
4865
env:
4966
BUILDKITE_CLEAN_CHECKOUT: "true"
5067
retry:

0 commit comments

Comments
 (0)