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

.oniro-ci: Add abi-checker to CI


ABI checker implementation is meta-binaryaudit. Adding it for CI only
to not shrink support surface of the project.

Signed-off-by: default avatarPavel Zhukov <pavel.zhukov@huawei.com>
parent 074402b7
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !114. Comments created here will be created in the context of that merge request.
...@@ -162,6 +162,13 @@ ...@@ -162,6 +162,13 @@
| sed -e 's/^CI_ONIRO_BB_LOCAL_CONF_plus_equals_//g' -e 's/"/\\"/g' -e 's/=/ += "/g' -e 's/$/"/g' \ | sed -e 's/^CI_ONIRO_BB_LOCAL_CONF_plus_equals_//g' -e 's/"/\\"/g' -e 's/=/ += "/g' -e 's/$/"/g' \
| sort \ | sort \
| tee -a conf/local.conf ) | tee -a conf/local.conf )
- |
( set +o pipefail;
env \
| grep -E '^CI_ONIRO_BB_BBLAYERS_CONF_plus_equals_[A-Z_0-9]+=' \
| sed -e 's/^CI_ONIRO_BB_BBLAYERS_CONF_plus_equals_//g' -e 's/"/\\"/g' -e 's/=/ += "/g' -e 's/$/"/g' \
| sort \
| tee -a conf/bblayers.conf )
# Sanity check: disallow using public build cache with a specific setting # Sanity check: disallow using public build cache with a specific setting
# in local.conf. The list of settings may grow over time. # in local.conf. The list of settings may grow over time.
...@@ -407,6 +414,15 @@ ...@@ -407,6 +414,15 @@
.build: .build:
extends: .build-recipe extends: .build-recipe
.check-abi:
variables:
CI_ONIRO_BB_LOCAL_CONF_plus_equals_INHERIT: abicheck
CI_ONIRO_MANIFEST_NAME: manifests/ci.xml
CI_ONIRO_BB_BBLAYERS_CONF_plus_equals_BBLAYERS: "../meta-binaryaudit"
after_script:
- tar -cJvf "artifacts/abicheck.tar.xz" "buildhistory/packages/*/*/binaryaudit" ## TODO: Uniqid into file
- !reference [.workspace, after_script]
# This job is documented in docs/ci/hidden-jobs/build-docs.rst # This job is documented in docs/ci/hidden-jobs/build-docs.rst
.build-docs: .build-docs:
interruptible: true interruptible: true
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
allow_failure: true allow_failure: true
.linux-qemu-x86: .linux-qemu-x86:
extends: .build-wic-image extends: [.build-wic-image, .check-abi]
variables: variables:
MACHINE: qemux86 MACHINE: qemux86
CI_ONIRO_BUILD_FLAVOUR: linux CI_ONIRO_BUILD_FLAVOUR: linux
...@@ -51,7 +51,7 @@ linux-qemu-x86-clang: ...@@ -51,7 +51,7 @@ linux-qemu-x86-clang:
extends: [.linux-qemu-x86, .toolchain-clang] extends: [.linux-qemu-x86, .toolchain-clang]
.linux-qemu-x86_64: .linux-qemu-x86_64:
extends: .build-wic-image extends: [.build-wic-image, .check-abi]
variables: variables:
MACHINE: qemux86-64 MACHINE: qemux86-64
CI_ONIRO_BUILD_FLAVOUR: linux CI_ONIRO_BUILD_FLAVOUR: linux
...@@ -129,7 +129,7 @@ linux-seco-imx8mm-c61-4gb-extra-clang: ...@@ -129,7 +129,7 @@ linux-seco-imx8mm-c61-4gb-extra-clang:
extends: [.linux-seco-imx8mm-c61-4gb-extra, .toolchain-clang, .broken] extends: [.linux-seco-imx8mm-c61-4gb-extra, .toolchain-clang, .broken]
.linux-raspberrypi4-64: .linux-raspberrypi4-64:
extends: .build-wic-image extends: [.build-wic-image, .check-abi]
variables: variables:
MACHINE: raspberrypi4-64 MACHINE: raspberrypi4-64
CI_ONIRO_BUILD_FLAVOUR: linux CI_ONIRO_BUILD_FLAVOUR: linux
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: Huawei Inc.
-->
<manifest>
<include name="manifests/default.xml" />
<project name="oniro-core/meta-binaryaudit" remote="eclipse" revision="oniro/kirkstone" path="meta-binaryaudit" />
</manifest>
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