Skip to content

Commit 91cb1ef

Browse files
committed
ci: split download into its own step
Move download into its own step and only run it on a single target so we don't have issues with multiple steps trying to upload the same artifacts. Signed-off-by: Kumar Gala <[email protected]>
1 parent c748128 commit 91cb1ef

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.buildkite/download.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
steps:
2+
- label: "download-sources"
3+
key: "download-sources"
4+
depends_on: "linux-x86_64-crosstool-cmake"
5+
command:
6+
- buildkite-agent artifact download crosstool.linux.x86_64.tar.bz2 .
7+
- tar xf crosstool.linux.x86_64.tar.bz2
8+
- export CT_ONLY_DOWNLOAD=y
9+
- ./go.sh arm
10+
- buildkite-agent artifact upload "build/output/sources/*"
11+
env:
12+
BUILDKITE_CLEAN_CHECKOUT: "true"
13+
plugins:
14+
- docker#v3.5.0:
15+
image: "zephyrprojectrtos/sdk-build:v1.0.1"
16+
propagate-environment: true
17+
user: buildkite-agent
18+
agents:
19+
- "queue=sdk-ng-x86_64"

.buildkite/pipeline-template.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ 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/*"
129
env:
1310
BUILDKITE_CLEAN_CHECKOUT: "true"
1411
plugins:
@@ -21,7 +18,7 @@ steps:
2118

2219
- label: "$OS-$MACHINE"
2320
key: "$OS-$MACHINE"
24-
depends_on: "$OS-$MACHINE-crosstool-cmake"
21+
depends_on: "download-sources"
2522
command:
2623
- >
2724
case "$${BUILDKITE_PARALLEL_JOB}" in

0 commit comments

Comments
 (0)