Skip to content

Commit 6b4aec9

Browse files
committed
ci: add host tools to CI
Build the host tools as well as part of this repo to join them in a second step into one single installable SDK. Signed-off-by: Anas Nashif <[email protected]>
1 parent 4f2923b commit 6b4aec9

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.shippable.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
- TARGET=mips
1515
- TARGET=arc
1616
- TARGET=xtensa
17+
- TARGET="tools"
1718

1819
build:
1920
cache: true
@@ -31,19 +32,28 @@ build:
3132
- sudo apt-get install -y gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential libtool-bin
3233
- sudo apt-get install -y libreadline-dev gperf flex bison libncurses5-dev texinfo help2man
3334
- unset CC
34-
- ./go.sh ${TARGET}
35+
- >
36+
if [ "${TARGET}" == 'tools' ]; then
37+
git clone https://github.com/zephyrproject-rtos/meta-zephyr-sdk.git;
38+
./meta-zephyr-sdk/scripts/meta-zephyr-sdk-clone.sh;
39+
./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+
else
41+
./go.sh ${TARGET};
42+
fi
3543
- >
3644
if [ "$IS_PULL_REQUEST" = "false" ]; then
3745
sudo -E sh -c 'echo "IS_GIT_TAG=${IS_GIT_TAG}" >> $JOB_STATE/sdk.env';
3846
sudo -E sh -c 'echo "IS_RELEASE=${IS_RELEASE}" >> $JOB_STATE/sdk.env';
3947
sudo -E sh -c 'echo "IS_PRERELEASE=${IS_PRERELEASE}" >> $JOB_STATE/sdk.env';
4048
sudo -E sh -c 'echo "GIT_TAG_NAME=${GIT_TAG_NAME}" >> $JOB_STATE/sdk.env';
4149
cat $JOB_STATE/sdk.env;
42-
tar jcvf ${TARGET}.tar.bz2 build/output/*-zephyr-*;
43-
echo "tar build completed";
4450
export S3_PATH="s3://incoming.zephyrproject.org/sdk-ng/${SDKNG_CIREPO_VERSIONNUMBER}";
4551
echo "uploading ${TARGET}.tar.bz2 to ${S3_PATH}/";
46-
aws s3 cp ${TARGET}.tar.bz2 ${S3_PATH}/;
52+
if [ "${TARGET}" == 'tools' ]; then
53+
aws s3 cp zephyr-sdk-x86_64-hosttools-standalone-0.9.sh ${S3_PATH}/;
54+
else
55+
aws s3 cp ${TARGET}.tar.bz2 ${S3_PATH}/;
56+
fi
4757
fi
4858
- ccache -s
4959
integrations:

0 commit comments

Comments
 (0)