2019-10-11 13:13:48 +00:00
|
|
|
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: ExecuteCommand
|
|
|
|
command: "{{.Env.ENV_PREFIX}} cmake {{.Env.CONFIGURE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{.InstallDir}}/host -DBUILD_TESTING=OFF {{.SourceDir}}"
|
|
|
|
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
|
|
|
maxTimeInSeconds: 6000
|
|
|
|
maxTimeBetweenOutput: 1200
|
|
|
|
userMessageOnFailure: >
|
2020-02-13 09:40:41 +00:00
|
|
|
Failed to call cmake.
|
2019-10-11 13:13:48 +00:00
|
|
|
- type: ExecuteCommand
|
2020-03-13 15:56:41 +00:00
|
|
|
command: "{{.Env.ENV_PREFIX}} cmake --build . --parallel -v"
|
2019-10-11 13:13:48 +00:00
|
|
|
maxTimeInSeconds: 6000
|
|
|
|
maxTimeBetweenOutput: 1200
|
|
|
|
userMessageOnFailure: >
|
2020-02-13 09:40:41 +00:00
|
|
|
Failed to build sources. In the current state bug can be everywhere.
|
2019-10-11 13:13:48 +00:00
|
|
|
- type: ExecuteCommand
|
|
|
|
command: "{{.Env.ENV_PREFIX}} cmake --install ."
|
|
|
|
maxTimeInSeconds: 6000
|
|
|
|
maxTimeBetweenOutput: 1200
|
|
|
|
userMessageOnFailure: >
|
|
|
|
Failed to install package.
|
2019-11-14 10:51:11 +00:00
|
|
|
- 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: ""
|
2019-10-11 13:13:48 +00:00
|
|
|
- type: SetBuildDirectory
|
|
|
|
directory: "{{.SourceDir}}/build/target"
|
|
|
|
- type: ChangeDirectory
|
|
|
|
directory: "{{.BuildDir}}"
|
|
|
|
- type: ExecuteCommand
|
|
|
|
command: "{{.Env.ENV_PREFIX}} cmake {{.Env.TARGET_CONFIGURE_ARGS}} -DQT_HOST_PATH={{.InstallDir}}/host -DCMAKE_INSTALL_PREFIX:PATH={{.InstallDir}}/target -DBUILD_TESTING=OFF {{.SourceDir}}"
|
|
|
|
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
|
|
|
maxTimeInSeconds: 6000
|
|
|
|
maxTimeBetweenOutput: 1200
|
|
|
|
userMessageOnFailure: >
|
2020-02-13 09:40:41 +00:00
|
|
|
Failed to call cmake.
|
2019-10-11 13:13:48 +00:00
|
|
|
- type: ExecuteCommand
|
2020-03-13 15:56:41 +00:00
|
|
|
command: "{{.Env.ENV_PREFIX}} cmake --build . --parallel -v"
|
2019-10-11 13:13:48 +00:00
|
|
|
maxTimeInSeconds: 6000
|
|
|
|
maxTimeBetweenOutput: 1200
|
|
|
|
userMessageOnFailure: >
|
2020-02-13 09:40:41 +00:00
|
|
|
Failed to build sources. In the current state bug can be everywhere.
|
2019-10-11 13:13:48 +00:00
|
|
|
- type: ExecuteCommand
|
|
|
|
command: "{{.Env.ENV_PREFIX}} cmake --install ."
|
|
|
|
maxTimeInSeconds: 6000
|
|
|
|
maxTimeBetweenOutput: 1200
|
|
|
|
userMessageOnFailure: >
|
|
|
|
Failed to install package.
|
2019-11-14 10:51:11 +00:00
|
|
|
- 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
|