forked from qt/qtbase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: upload artifact for qtbase android build and etc
Task-number: QTBUG-78945 Change-Id: I3361e63ed4830ac0e1ebb9d4b9495df09c45f476 Reviewed-by: Alexandru Croitor <[email protected]>
- Loading branch information
Showing
8 changed files
with
210 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
type: Group | ||
instructions: | ||
- type: ExecuteCommand | ||
command: "{{.Env.ENV_PREFIX}} {{.InstallDir}}\\host\\bin\\qt-cmake {{.Env.COIN_CMAKE_ARGS}}" | ||
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution | ||
maxTimeInSeconds: 6000 | ||
maxTimeBetweenOutput: 1200 | ||
userMessageOnFailure: > | ||
Failed to call cmake. Contact Liang then. | ||
enable_if: | ||
condition: property | ||
property: host.os | ||
equals_value: Windows | ||
- type: ExecuteCommand | ||
command: "{{.InstallDir}}/host/bin/qt-cmake {{.Env.COIN_CMAKE_ARGS}}" | ||
maxTimeInSeconds: 6000 | ||
maxTimeBetweenOutput: 1200 | ||
userMessageOnFailure: > | ||
Failed to call cmake. Contact Liang then. | ||
disable_if: | ||
condition: property | ||
property: host.os | ||
equals_value: Windows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
type: Group | ||
instructions: | ||
- type: ExecuteCommand | ||
command: "{{.Env.ENV_PREFIX}} {{.InstallDir}}\\target\\bin\\qt-cmake {{.Env.COIN_CMAKE_ARGS}}" | ||
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution | ||
maxTimeInSeconds: 6000 | ||
maxTimeBetweenOutput: 1200 | ||
userMessageOnFailure: > | ||
Failed to call cmake. Contact Liang then. | ||
enable_if: | ||
condition: property | ||
property: host.os | ||
equals_value: Windows | ||
- type: ExecuteCommand | ||
command: "{{.InstallDir}}/target/bin/qt-cmake {{.Env.COIN_CMAKE_ARGS}}" | ||
maxTimeInSeconds: 6000 | ||
maxTimeBetweenOutput: 1200 | ||
userMessageOnFailure: > | ||
Failed to call cmake. Contact Liang then. | ||
disable_if: | ||
condition: property | ||
property: host.os | ||
equals_value: Windows |
81 changes: 81 additions & 0 deletions
81
coin/instructions/cmake_cross_compilation_module_build_instructions.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
type: Group | ||
instructions: | ||
- type: MakeDirectory | ||
directory: .git | ||
- type: MakeDirectory | ||
directory: build | ||
- type: ChangeDirectory | ||
directory: "{{.BuildDir}}/build" | ||
- type: MakeDirectory | ||
directory: host | ||
- type: MakeDirectory | ||
directory: target | ||
- type: SetBuildDirectory | ||
directory: "{{.SourceDir}}/build/host" | ||
- type: ChangeDirectory | ||
directory: "{{.BuildDir}}" | ||
- type: EnvironmentVariable | ||
variableName: COIN_CMAKE_ARGS | ||
variableValue: "-DBUILD_TESTING=OFF {{.SourceDir}}" | ||
- !include "{{qt/qtbase}}/call_host_cmake.yaml" | ||
- type: ExecuteCommand | ||
command: "{{.Env.ENV_PREFIX}} cmake --build . --parallel" | ||
maxTimeInSeconds: 6000 | ||
maxTimeBetweenOutput: 1200 | ||
userMessageOnFailure: > | ||
Failed to build sources. In the current state bug can be everywhere. Contact Liang first. | ||
- type: ExecuteCommand | ||
command: "{{.Env.ENV_PREFIX}} cmake --install ." | ||
maxTimeInSeconds: 6000 | ||
maxTimeBetweenOutput: 1200 | ||
userMessageOnFailure: > | ||
Failed to install package. | ||
- type: EnvironmentVariable | ||
variableName: DESTDIR | ||
variableValue: "{{.InstallRoot}}" | ||
- type: ExecuteCommand | ||
command: "{{.Env.ENV_PREFIX}} cmake --install ." | ||
maxTimeInSeconds: 6000 | ||
maxTimeBetweenOutput: 1200 | ||
userMessageOnFailure: > | ||
Failed to install package for archiving. | ||
- type: EnvironmentVariable | ||
variableName: DESTDIR | ||
variableValue: "" | ||
- type: SetBuildDirectory | ||
directory: "{{.SourceDir}}/build/target" | ||
- type: ChangeDirectory | ||
directory: "{{.BuildDir}}" | ||
- type: EnvironmentVariable | ||
variableName: COIN_CMAKE_ARGS | ||
variableValue: "-DBUILD_TESTING=OFF {{.SourceDir}}" | ||
- !include "{{qt/qtbase}}/call_target_cmake.yaml" | ||
- type: ExecuteCommand | ||
command: "{{.Env.ENV_PREFIX}} cmake --build . --parallel" | ||
maxTimeInSeconds: 6000 | ||
maxTimeBetweenOutput: 1200 | ||
userMessageOnFailure: > | ||
Failed to build sources. In the current state bug can be everywhere. Contact Liang first. | ||
- type: ExecuteCommand | ||
command: "{{.Env.ENV_PREFIX}} cmake --install ." | ||
maxTimeInSeconds: 6000 | ||
maxTimeBetweenOutput: 1200 | ||
userMessageOnFailure: > | ||
Failed to install package. | ||
- type: EnvironmentVariable | ||
variableName: DESTDIR | ||
variableValue: "{{.InstallRoot}}" | ||
- type: ExecuteCommand | ||
command: "{{.Env.ENV_PREFIX}} cmake --install ." | ||
maxTimeInSeconds: 6000 | ||
maxTimeBetweenOutput: 1200 | ||
userMessageOnFailure: > | ||
Failed to install package for archiving. | ||
- type: EnvironmentVariable | ||
variableName: DESTDIR | ||
variableValue: "" | ||
- type: UploadArtifact | ||
archiveDirectory: "{{.InstallRoot}}/{{.AgentWorkingDir}}" | ||
transferType: UploadModuleBuildArtifact | ||
maxTimeInSeconds: 1200 | ||
maxTimeBetweenOutput: 1200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
type: Group | ||
instructions: | ||
- !include "{{qt/qtbase}}/prepare_building_env.yaml" | ||
- type: Group | ||
instructions: | ||
- !include "{{qt/qtbase}}/cmake_module_build_instructions.yaml" | ||
- !include "{{qt/qtbase}}/cmake_build_and_upload_test_artifacts.yaml" | ||
enable_if: | ||
condition: property | ||
property: host.os | ||
equals_property: target.os | ||
- type: Group | ||
instructions: | ||
- !include "{{qt/qtbase}}/cmake_cross_compilation_module_build_instructions.yaml" | ||
disable_if: | ||
condition: property | ||
property: host.os | ||
equals_property: target.os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
type: Group | ||
instructions: | ||
- type: Group | ||
instructions: | ||
- !include "{{qt/qtbase}}/cmake_regular_test_instructions.yaml" | ||
enable_if: | ||
condition: property | ||
property: host.os | ||
equals_property: target.os | ||
- type: EnvironmentVariable | ||
variableName: Dummy | ||
variableValue: dummy | ||
disable_if: | ||
condition: property | ||
property: host.os | ||
equals_property: target.os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
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.yaml" | ||
enable_if: | ||
condition: property | ||
property: host.os | ||
equals_property: target.os | ||
- type: Group | ||
instructions: | ||
- !include "{{qt/qtbase}}/cmake_cross_compilation_qtbase_build_instructions.yaml" | ||
disable_if: | ||
condition: property | ||
property: host.os | ||
equals_property: target.os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters