80705298ca
Add infrastructure to build cmake auto tests in the CI when targeting iOS. Currently the are only CI instructions for qtbase. More work is needed to make it work for other repos. With this change, we will build a single Widgets application targeting the iOS simulator. We can't target the device SDK in the CI because signing fails due to a missing signing certificate and provisioning profile. The Coin instructions will now set a QT_BUILD_ENVIRONMENT=ci env var whose value will be checked in _qt_internal_test_expect_pass, to ensure we build for the simulator SDK when using a universal Qt. Without this, xcodebuild will try to build with the device SDK and fail to build the project. Pick-to: 6.2 Task-number: QTBUG-95839 Change-Id: Ib39c9527b107b2004746ccbdc9d9d1d658f88c76 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
type: Group
|
|
instructions:
|
|
- !include "{{qt/qtbase}}/prepare_building_env.yaml"
|
|
- type: Group
|
|
instructions:
|
|
- !include "{{qt/qtbase}}/cmake_qtbase_build_instructions.yaml"
|
|
- !include "{{qt/qtbase}}/cmake_build_and_upload_test_artifacts_host.yaml"
|
|
enable_if:
|
|
condition: and
|
|
conditions:
|
|
- condition: property
|
|
property: host.os
|
|
equals_property: target.os
|
|
- condition: property
|
|
property: target.osVersion
|
|
not_in_values: [QEMU, WebAssembly, INTEGRITY]
|
|
- condition: property
|
|
property: features
|
|
not_contains_value: "TargetBuildOnly"
|
|
- type: Group
|
|
instructions:
|
|
- !include "{{qt/qtbase}}/cmake_cross_compilation_qtbase_build_instructions.yaml"
|
|
- type: Group
|
|
instructions:
|
|
- !include "{{qt/qtbase}}/cmake_build_and_upload_test_artifacts_target.yaml"
|
|
enable_if:
|
|
condition: property
|
|
property: target.osVersion
|
|
in_values: [Android_ANY, QEMU, IOS_ANY]
|
|
enable_if:
|
|
condition: or
|
|
conditions:
|
|
- condition: property
|
|
property: target.osVersion
|
|
in_values: [IOS_ANY, Android_ANY, QEMU, QNX_710, WebAssembly, INTEGRITY]
|
|
- condition: and
|
|
conditions:
|
|
- condition: property
|
|
property: host.compiler
|
|
equals_value: MSVC2019
|
|
- condition: property
|
|
property: target.arch
|
|
equals_value: ARM64
|