Skip to content

Commit 3ae7650

Browse files
committed
ci: Update pipeline.yml for handling OS
To prep for support different build variants for MacOS & Linux add OS into filenames and such to handle different builds. Fixup go.sh and make_zephyr_sdk.sh to handle filenames being of the form {target}.{os}.{machine}.tar.bz2. Signed-off-by: Kumar Gala <[email protected]>
1 parent a9993b0 commit 3ae7650

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

.buildkite/pipeline-template.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
steps:
2-
- label: "$MACHINE"
3-
key: "$MACHINE"
2+
- label: "$OS-$MACHINE"
3+
key: "$OS-$MACHINE"
44
command:
55
- >
66
case "$${BUILDKITE_PARALLEL_JOB}" in
@@ -28,21 +28,21 @@ steps:
2828
if [ $${TARGET} = "tools" ]; then
2929
buildkite-agent artifact upload zephyr-sdk-$MACHINE-hosttools-standalone-0.9.sh;
3030
elif [ $${TARGET} = "cmake" ]; then
31-
buildkite-agent artifact upload cmake.$MACHINE.tar.bz2;
31+
buildkite-agent artifact upload cmake.$OS.$MACHINE.tar.bz2;
3232
else
3333
cd build/output
3434
case "$${TARGET}" in
3535
xtensa_*)
36-
tar --exclude='build.log.bz2' -jcvf ../../$${TARGET}.$MACHINE.tar.bz2 xtensa/$${TARGET#xtensa_}/*-zephyr-*;
36+
tar --exclude='build.log.bz2' -jcvf ../../$${TARGET}.$OS.$MACHINE.tar.bz2 xtensa/$${TARGET#xtensa_}/*-zephyr-*;
3737
buildkite-agent artifact upload xtensa/$${TARGET#xtensa_}/*-zephyr-*/build.log.bz2
3838
;;
3939
*)
40-
tar --exclude='build.log.bz2' -jcvf ../../$${TARGET}.$MACHINE.tar.bz2 *-zephyr-*;
40+
tar --exclude='build.log.bz2' -jcvf ../../$${TARGET}.$OS.$MACHINE.tar.bz2 *-zephyr-*;
4141
buildkite-agent artifact upload *-zephyr-*/build.log.bz2
4242
;;
4343
esac
4444
cd ../..
45-
buildkite-agent artifact upload $${TARGET}.$MACHINE.tar.bz2;
45+
buildkite-agent artifact upload $${TARGET}.$OS.$MACHINE.tar.bz2;
4646
fi
4747
parallelism: 18
4848
env:
@@ -59,7 +59,7 @@ steps:
5959
- "queue=sdk-ng-$MACHINE"
6060

6161
- trigger: "sdk-ng-deploy"
62-
depends_on: "$MACHINE"
62+
depends_on: "$OS-$MACHINE"
6363
if: build.tag != null || build.pull_request.id != null
6464
build:
6565
message: "${BUILDKITE_MESSAGE}"
@@ -70,4 +70,5 @@ steps:
7070
BUILDKITE_PULL_REQUEST_BASE_BRANCH: "${BUILDKITE_PULL_REQUEST_BASE_BRANCH}"
7171
BUILDKITE_PULL_REQUEST_REPO: "${BUILDKITE_PULL_REQUEST_REPO}"
7272
BUILDKITE_TAG: "${BUILDKITE_TAG}"
73-
MACHINE: "$MACHINE"
73+
MACHINE: "${MACHINE}"
74+
OS: "${OS}"

go.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ for t in ${TARGETS}; do
6363
./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build.sh tools;
6464
mv ./meta-zephyr-sdk/scripts/toolchains/zephyr-sdk-${machine}-hosttools-standalone-0.9.sh .
6565
elif [ "${t}" = "cmake" ]; then
66-
tar -jcvf ${t}.${machine}.tar.bz2 -C ${GITDIR} cmake
66+
tar -jcvf ${t}.${os}.${machine}.tar.bz2 -C ${GITDIR} cmake
6767
fi
6868
done
6969

scripts/make_zephyr_sdk.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ parse_toolchain_name()
5656
local num
5757
local filename
5858

59-
if [ -f toolchains/$arch.${machine}.tar.bz2 ]; then
60-
filename="$arch.${machine}.tar.bz2"
59+
if [ -f toolchains/$arch.${os}.${machine}.tar.bz2 ]; then
60+
filename="$arch.${os}.${machine}.tar.bz2"
6161
else
6262
num=$(ls toolchains | grep $arch | wc -l)
6363
if [ "$num" -gt "1" ]; then

0 commit comments

Comments
 (0)