summaryrefslogtreecommitdiffstats
path: root/coin
diff options
context:
space:
mode:
authorCasimir Saastamoinen <casimir.saastamoinen@qt.io>2023-08-24 15:09:51 +0300
committerCasimir Saastamoinen <casimir.saastamoinen@qt.io>2023-08-31 06:31:36 +0000
commitd4cccd0471cd5b57c900ef13e5dedd30f79f9de7 (patch)
tree82f0e39608e71ebb255d41ace9cf0fcbfc2cc984 /coin
parent946f15efb76fffda37b77f7d194d679b904305b1 (diff)
Enable binfmts incase it is disabled
Pick-to: 6.5 6.6 Task-number: COIN-1075 Change-Id: I476833e87af213b4fd7eced4accdc19f093c6824 Reviewed-by: Toni Saario <toni.saario@qt.io>
Diffstat (limited to 'coin')
-rw-r--r--coin/instructions/prepare_building_env.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/coin/instructions/prepare_building_env.yaml b/coin/instructions/prepare_building_env.yaml
index f816ef56ea..53fc2ae60c 100644
--- a/coin/instructions/prepare_building_env.yaml
+++ b/coin/instructions/prepare_building_env.yaml
@@ -305,6 +305,14 @@ instructions:
condition: property
property: target.osVersion
in_values: [QEMU]
+ # This fixes an issue where binfmts is sometimes disabled on the test VMs
+ - type: ExecuteCommand
+ command: sudo update-binfmts --enable
+ userMessageOnFailure: "Failed to enable binfmts"
+ enable_if:
+ condition: property
+ property: target.osVersion
+ equals_value: QEMU
# Windows on Arm, cross-compilation with MSVC
- type: Group