summaryrefslogtreecommitdiffstats
path: root/coin/instructions
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@qt.io>2023-09-18 11:46:09 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-09-26 07:43:05 +0000
commit9018d187aed7cba7d16fab19806e4dc3b6505023 (patch)
treec0150526839eed3414870c999833109e3c7b59ed /coin/instructions
parent7d3c51f154363baec9368e22da0ffe691306a372 (diff)
CI: Enable changing chroot in platform config for Debian packaging
Allows us to change the target distro through platform configuration yaml file. Task-number: QTBUG-117120 Change-Id: Ie6e99e4b25198e27491e6191f57d77dbbe3c4eed Reviewed-by: Toni Saario <toni.saario@qt.io> (cherry picked from commit 798175930e517e28230e3db3213510a22a041620) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit f07efb48194925fcf598a2f8ff46cafa8eec1284)
Diffstat (limited to 'coin/instructions')
-rw-r--r--coin/instructions/debian/prepare_debian_env.yaml24
1 files changed, 17 insertions, 7 deletions
diff --git a/coin/instructions/debian/prepare_debian_env.yaml b/coin/instructions/debian/prepare_debian_env.yaml
index b463db125c..fd130cebc7 100644
--- a/coin/instructions/debian/prepare_debian_env.yaml
+++ b/coin/instructions/debian/prepare_debian_env.yaml
@@ -8,16 +8,26 @@ instructions:
variableName: COIN_SBUILD_CHROOT
variableValue: "stable-arm64-sbuild"
enable_if:
- condition: property
- property: target.arch
- equals_value: AARCH64
+ condition: and
+ conditions:
+ - condition: runtime
+ env_var: COIN_SBUILD_CHROOT
+ equals_value: null
+ - condition: property
+ property: target.arch
+ equals_value: AARCH64
- type: EnvironmentVariable
variableName: COIN_SBUILD_CHROOT
variableValue: "stable-amd64-sbuild"
- disable_if:
- condition: property
- property: target.arch
- equals_value: AARCH64
+ enable_if:
+ condition: and
+ conditions:
+ - condition: runtime
+ env_var: COIN_SBUILD_CHROOT
+ equals_value: null
+ - condition: property
+ property: target.arch
+ equals_value: X86_64
- type: EnvironmentVariable
variableName: COIN_SBUILD_DISTRO
variableValue: "arm64-focal"