Skip to content
Snippets Groups Projects
Commit eda82c47 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
...@@ -214,13 +214,31 @@ ...@@ -214,13 +214,31 @@
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"
rules:
- if: '$CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN == "clang"'
allow_failure: true
# 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"]
rules:
- if: '$CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN == "clang"'
allow_failure: true
# 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,6 +256,15 @@ ...@@ -238,6 +256,15 @@
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"'
allow_failure: true
# 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:
...@@ -249,6 +276,16 @@ ...@@ -249,6 +276,16 @@
script: script:
- !reference [.bitbake-workspace, script] - !reference [.bitbake-workspace, script]
- time bitbake freertos-demo - time bitbake freertos-demo
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: on_success
allow_failure: true
# 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 +332,12 @@ ...@@ -295,6 +332,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 +345,12 @@ ...@@ -302,6 +345,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