Skip to content
Snippets Groups Projects
Commit 32d51127 authored by Pavel Zhukov's avatar Pavel Zhukov
Browse files

.oniro-ci: Add clang jobs

Fixes: eclipse/oniro-core/oniro#621


Signed-off-by: default avatarPavel Zhukov <pavel.zhukov@huawei.com>
parent 7278313b
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,8 @@ aggregate-docs: ...@@ -78,6 +78,8 @@ aggregate-docs:
CI_ONIRO_MANIFEST_BRANCH: "$CI_COMMIT_REF_NAME" CI_ONIRO_MANIFEST_BRANCH: "$CI_COMMIT_REF_NAME"
- if: '$CI_COMMIT_TAG' - if: '$CI_COMMIT_TAG'
# XXX: This needs CI_ONIRO_MANIFEST_BRANCH as well, most likely. # XXX: This needs CI_ONIRO_MANIFEST_BRANCH as well, most likely.
- if: '$CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN == "clang"'
allow_failure: true
# The three jobs defined below override the definitions from build-generic.yaml # The three jobs defined below override the definitions from build-generic.yaml
......
...@@ -214,13 +214,25 @@ ...@@ -214,13 +214,25 @@
time bitbake "$target" time bitbake "$target"
du -sh tmp du -sh tmp
done done
parallel:
matrix:
- CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN: "clang"
CI_ONIRO_BB_LOCAL_CONF_RUNTIME: "llvm"
- CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN: "gcc"
CI_ONIRO_BB_LOCAL_CONF_RUNTIME: "gnu"
# This job is documented in docs/ci/hidden-jobs/build-linux-marix.rst # This job is documented in docs/ci/hidden-jobs/build-linux-marix.rst
.build-linux-matrix: .build-linux-matrix:
extends: .build-linux extends: .build-linux
parallel: parallel:
matrix: matrix:
- CI_ONIRO_BITBAKE_TARGETS: ["oniro-image-base-tests", "oniro-image-extra-tests"] - CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN: "clang"
CI_ONIRO_BB_LOCAL_CONF_RUNTIME: "llvm"
CI_ONIRO_BITBAKE_TARGETS: ["oniro-image-base-tests", "oniro-image-extra-tests"]
- CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN: "gcc"
CI_ONIRO_BB_LOCAL_CONF_RUNTIME: "gnu"
CI_ONIRO_BITBAKE_TARGETS: ["oniro-image-base-tests", "oniro-image-extra-tests"]
# This job is documented in docs/ci/hidden-jobs/build-zephyr.rst # This job is documented in docs/ci/hidden-jobs/build-zephyr.rst
.build-zephyr: .build-zephyr:
...@@ -238,7 +250,16 @@ ...@@ -238,7 +250,16 @@
for target in $CI_ONIRO_BITBAKE_TARGETS; do for target in $CI_ONIRO_BITBAKE_TARGETS; do
time bitbake "$target" time bitbake "$target"
done done
parallel:
matrix:
- CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN: "clang"
CI_ONIRO_BB_LOCAL_CONF_RUNTIME: "llvm"
- CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN: "gcc"
CI_ONIRO_BB_LOCAL_CONF_RUNTIME: "gnu"
rules:
- if: '$CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN == "clang"'
when: manual
# This job is documented in docs/ci/hidden-jobs/build-freertos.rst # This job is documented in docs/ci/hidden-jobs/build-freertos.rst
.build-freertos: .build-freertos:
extends: .bitbake-workspace extends: .bitbake-workspace
...@@ -249,6 +270,15 @@ ...@@ -249,6 +270,15 @@
script: script:
- !reference [.bitbake-workspace, script] - !reference [.bitbake-workspace, script]
- time bitbake freertos-demo - time bitbake freertos-demo
rules:
- if: '$CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN == "clang"'
when: manual
parallel:
matrix:
- CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN: "clang"
CI_ONIRO_BB_LOCAL_CONF_RUNTIME: "llvm"
- CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN: "gcc"
CI_ONIRO_BB_LOCAL_CONF_RUNTIME: "gnu"
# This job is documented in docs/ci/hidden-jobs/build-recipe.rst # This job is documented in docs/ci/hidden-jobs/build-recipe.rst
.build-recipe: .build-recipe:
...@@ -295,6 +325,12 @@ ...@@ -295,6 +325,12 @@
artifacts: artifacts:
paths: paths:
- artifacts/ - artifacts/
parallel:
matrix:
- CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN: "clang"
CI_ONIRO_BB_LOCAL_CONF_RUNTIME: "llvm"
- CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN: "gcc"
CI_ONIRO_BB_LOCAL_CONF_RUNTIME: "gnu"
.build-wic-image: .build-wic-image:
extends: .build-image extends: .build-image
...@@ -302,6 +338,12 @@ ...@@ -302,6 +338,12 @@
CI_ONIRO_JOB_ARTIFACTS: "*.wic.* *.bmap" CI_ONIRO_JOB_ARTIFACTS: "*.wic.* *.bmap"
script: script:
- !reference [.build-image, script] - !reference [.build-image, script]
parallel:
matrix:
- CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN: "clang"
CI_ONIRO_BB_LOCAL_CONF_RUNTIME: "llvm"
- CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN: "gcc"
CI_ONIRO_BB_LOCAL_CONF_RUNTIME: "gnu"
.build-rauc-bundle: .build-rauc-bundle:
extends: .build-image extends: .build-image
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment