Skip to content

Commit bc84e54

Browse files
committed
ci: upload built toolchains to S3
Upload all toolchains to S3 so we can build the final SDK images from them. Signed-off-by: Anas Nashif <[email protected]>
1 parent 6b4aec9 commit bc84e54

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.shippable.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ build:
2323
- ${SHIPPABLE_BUILD_DIR}/sources
2424
pre_ci_boot:
2525
image_name: zephyrprojectrtos/ci
26-
image_tag: v0.4-rc7
26+
image_tag: v0.5-rc5
2727
pull: true
2828
options: "-e HOME=/home/buildslave --privileged=true --tty --net=bridge --user buildslave"
2929

@@ -37,6 +37,7 @@ build:
3737
git clone https://github.com/zephyrproject-rtos/meta-zephyr-sdk.git;
3838
./meta-zephyr-sdk/scripts/meta-zephyr-sdk-clone.sh;
3939
./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build-split.sh tools || ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build-split.sh tools || ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build-split.sh tools;
40+
mv ./meta-zephyr-sdk/scripts/toolchains/zephyr-sdk-x86_64-hosttools-standalone-0.9.sh .
4041
else
4142
./go.sh ${TARGET};
4243
fi
@@ -48,10 +49,12 @@ build:
4849
sudo -E sh -c 'echo "GIT_TAG_NAME=${GIT_TAG_NAME}" >> $JOB_STATE/sdk.env';
4950
cat $JOB_STATE/sdk.env;
5051
export S3_PATH="s3://incoming.zephyrproject.org/sdk-ng/${SDKNG_CIREPO_VERSIONNUMBER}";
51-
echo "uploading ${TARGET}.tar.bz2 to ${S3_PATH}/";
5252
if [ "${TARGET}" == 'tools' ]; then
53+
echo "uploading zephyr-sdk-x86_64-hosttools-standalone-0.9.sh to ${S3_PATH}/";
5354
aws s3 cp zephyr-sdk-x86_64-hosttools-standalone-0.9.sh ${S3_PATH}/;
5455
else
56+
echo "uploading ${TARGET}.tar.bz2 to ${S3_PATH}/";
57+
tar --exclude='build.log.bz2' -C build/output/ -jcvf ${TARGET}.tar.bz2 *-zephyr-*
5558
aws s3 cp ${TARGET}.tar.bz2 ${S3_PATH}/;
5659
fi
5760
fi

go.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ for t in ${TARGETS}; do
9797
unset CC
9898
fi
9999

100-
tar --exclude='build.log.bz2' -C build/output/ -jcvf ${t}.tar.bz2 ${t}-zephyr-elf
101-
102100
popd
103101
rm -rf build_${t}
104102

0 commit comments

Comments
 (0)