diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 10d41ac7bc2730597c0bfea7d67561fc7db29804..92ace23d6416f49c3b563fe2077a6e1e25f7384e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -58,6 +58,8 @@ aggregate-docs: # manually. .workspace-rules: rules: + - if: '$CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN == "clang"' + allow_failure: true - if: '$CI_PIPELINE_SOURCE == "schedule"' variables: CI_ONIRO_MANIFEST_URL: "$CI_PROJECT_URL" diff --git a/.oniro-ci/build-generic.yaml b/.oniro-ci/build-generic.yaml index 67abc4ad1cf53831e130d9b753b15cbc8b932e16..1e9ae38b1df0ffc62407222735037c99ab9d36c8 100644 --- a/.oniro-ci/build-generic.yaml +++ b/.oniro-ci/build-generic.yaml @@ -194,6 +194,9 @@ # them). time devtool finish --remove-work --force "$CI_ONIRO_DEVTOOL_RECIPE_NAME" "$(basename "$CI_ONIRO_DEVTOOL_LAYER_PATH")"; fi + rules: + - if: '$CI_ONIRO_BB_LOCAL_CONF_TOOLCHAIN == "clang"' + allow_failure: true # This job is documented in docs/ci/hidden-jobs/build-linux.rst .build-linux: @@ -214,13 +217,25 @@ time bitbake "$target" du -sh tmp 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 .build-linux-matrix: extends: .build-linux parallel: 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 .build-zephyr: @@ -238,6 +253,12 @@ for target in $CI_ONIRO_BITBAKE_TARGETS; do time bitbake "$target" 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-freertos.rst .build-freertos: @@ -249,6 +270,12 @@ script: - !reference [.bitbake-workspace, script] - 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" # This job is documented in docs/ci/hidden-jobs/build-recipe.rst .build-recipe: @@ -295,6 +322,12 @@ artifacts: paths: - 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: extends: .build-image @@ -302,6 +335,12 @@ CI_ONIRO_JOB_ARTIFACTS: "*.wic.* *.bmap" 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: extends: .build-image