Skip to content

Commit 7291775

Browse files
committed
ci: prefetch sources
Download sources once in first step and share them as artifacts for all other toolchain builds. Saves time in having to download the sources for every toolchain build. Signed-off-by: Kumar Gala <[email protected]>
1 parent be9b9cb commit 7291775

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.buildkite/pipeline-template.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ steps:
66
- buildkite-agent artifact upload cmake.$OS.$MACHINE.tar.bz2
77
- ./go.sh crosstool
88
- buildkite-agent artifact upload crosstool.$OS.$MACHINE.tar.bz2
9+
- export CT_ONLY_DOWNLOAD=y
10+
- ./go.sh arm
11+
- buildkite-agent artifact upload "build/output/sources/*"
912
env:
1013
BUILDKITE_CLEAN_CHECKOUT: "true"
1114
plugins:
@@ -41,6 +44,7 @@ steps:
4144
16) TARGET="arc64";;
4245
esac
4346
- buildkite-agent artifact download crosstool.$OS.$MACHINE.tar.bz2 .
47+
- buildkite-agent artifact download build/output/sources/* .
4448
- tar xvf crosstool.$OS.$MACHINE.tar.bz2 2> /dev/null
4549
- ./go.sh $${TARGET}
4650
- >

0 commit comments

Comments
 (0)