Skip to content
Snippets Groups Projects
Commit 4879e41d authored by Chase Qi's avatar Chase Qi Committed by Zygmunt Krynicki
Browse files

.oniro-ci: add build-zephyr-image job to publish elf and bin images


Signed-off-by: default avatarChase Qi <chase.qi@linaro.org>
parent 65ca3281
No related branches found
No related tags found
1 merge request!95.oniro-ci: add build-zephyr-image job to publish elf and bin images
...@@ -316,6 +316,13 @@ ...@@ -316,6 +316,13 @@
script: script:
- !reference [.build-image, script] - !reference [.build-image, script]
.build-zephyr-image:
extends: .build-image
variables:
CI_ONIRO_JOB_ARTIFACTS: "*.elf *.bin"
script:
- !reference [.build-image, script]
# This job is currently used to customize the behavior in oniro and xts-acts. # This job is currently used to customize the behavior in oniro and xts-acts.
# It will be removed when that is safe to do so. It is not documented. # It will be removed when that is safe to do so. It is not documented.
.build: .build:
......
...@@ -83,7 +83,7 @@ linux-raspberrypi4-64: ...@@ -83,7 +83,7 @@ linux-raspberrypi4-64:
CI_ONIRO_RECIPE_NAME: oniro-image-base-tests CI_ONIRO_RECIPE_NAME: oniro-image-base-tests
zephyr-qemu-x86: zephyr-qemu-x86:
extends: .build-image extends: .build-zephyr-image
variables: variables:
MACHINE: qemu-x86 MACHINE: qemu-x86
# See the note on linux-qemu-x86. # See the note on linux-qemu-x86.
...@@ -94,7 +94,7 @@ zephyr-qemu-x86: ...@@ -94,7 +94,7 @@ zephyr-qemu-x86:
CI_ONIRO_INSTANCE_SIZE: s3.large.2 CI_ONIRO_INSTANCE_SIZE: s3.large.2
zephyr-qemu-cortex-m3: zephyr-qemu-cortex-m3:
extends: .build-image extends: .build-zephyr-image
variables: variables:
MACHINE: qemu-cortex-m3 MACHINE: qemu-cortex-m3
# See the note on linux-qemu-x86. # See the note on linux-qemu-x86.
...@@ -105,7 +105,7 @@ zephyr-qemu-cortex-m3: ...@@ -105,7 +105,7 @@ zephyr-qemu-cortex-m3:
CI_ONIRO_INSTANCE_SIZE: s3.large.2 CI_ONIRO_INSTANCE_SIZE: s3.large.2
zephyr-96b-nitrogen: zephyr-96b-nitrogen:
extends: .build-image extends: .build-zephyr-image
variables: variables:
MACHINE: 96b-nitrogen MACHINE: 96b-nitrogen
CI_ONIRO_RECIPE_NAME: zephyr-philosophers CI_ONIRO_RECIPE_NAME: zephyr-philosophers
...@@ -113,7 +113,7 @@ zephyr-96b-nitrogen: ...@@ -113,7 +113,7 @@ zephyr-96b-nitrogen:
CI_ONIRO_INSTANCE_SIZE: s3.large.2 CI_ONIRO_INSTANCE_SIZE: s3.large.2
zephyr-96b-nitrogen-tests: zephyr-96b-nitrogen-tests:
extends: .build-image extends: .build-zephyr-image
variables: variables:
MACHINE: 96b-nitrogen MACHINE: 96b-nitrogen
CI_ONIRO_RECIPE_NAME: zephyr-kernel-test-all CI_ONIRO_RECIPE_NAME: zephyr-kernel-test-all
......
.. SPDX-FileCopyrightText: Huawei Inc.
..
.. SPDX-License-Identifier: CC-BY-4.0
===================
.build-zephyr-image
===================
The ``.build-zephyr-image`` job extends the :doc:`build-image` job to collect only
the `*.bin` and `*.elf` files and remove all the other files that would
normally be collected by the artifact system. It is recommended for Zephyr
builds which produce bin and elf images.
Usage Guide
===========
This job is configured exactly the same as :doc:`build-image` and
:doc:`build-recipe`.
...@@ -13,7 +13,7 @@ implementation details. ...@@ -13,7 +13,7 @@ implementation details.
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
workspace workspace
bitbake-workspace bitbake-workspace
build-linux build-linux
...@@ -23,6 +23,7 @@ implementation details. ...@@ -23,6 +23,7 @@ implementation details.
build-recipe build-recipe
build-image build-image
build-wic-image build-wic-image
build-zephyr-image
build-rauc-bundle build-rauc-bundle
build-docs build-docs
lava-test lava-test
......
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