Debian Codegraph @

coin/instructions/coin_build_doc_tools.yaml

raw
1 type: Group
2 instructions:
3 # Build outside of qtbase source dir, to avoid REUSE missing license warnings for the built files.
4 - type: SetBuildDirectory
5 directory: "{{.AgentWorkingDir}}"
6 - type: ChangeDirectory
7 directory: "{{.BuildDir}}"
8
9 - !include "{{qt/qtbase}}/prepare_building_env.yaml"
10
11 # This tells the script where to install the doc tools, and what files the archive will contain.
12 - type: EnvironmentVariable
13 variableName: QT_CI_DOC_TOOLS_INSTALL_DIR
14 variableValue: "{{.BuildDir}}/doc_tools_build/install"
15
16 # Tell Coin to fetch latest refs of required repos.
17 - type: UpdateRepo
18 repos: [qt/qt5, qt/qttools, qt/qtbase, qt/qtshadertools, qt/qtdeclarative, qt/qtsvg, qt/qtimageformats, qt/qtactiveqt, qt/qtlanguageserver]
19
20 - type: ExecuteCommand
21 command: "{{.Env.ENV_PREFIX}} cmake -P {{.SourceDir}}/cmake/QtBuildStaticDocToolsScript.cmake"
22 executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
23 maxTimeInSeconds: 6000
24 maxTimeBetweenOutput: 1200
25 userMessageOnFailure: >
26 Failed to build doc tools.
27 enable_if:
28 condition: runtime
29 env_var: TESTED_MODULE_COIN
30 contains_value: qtbase
31
32 # For non-qtbase repos, call the build script from the installed folder.
33 - type: ExecuteCommand
34 command: "{{.Env.ENV_PREFIX}} cmake -P {{.Env.COIN_CMAKE_INSTALL_DIR}}/lib/cmake/Qt6/QtBuildStaticDocToolsScript.cmake"
35 executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
36 maxTimeInSeconds: 6000
37 maxTimeBetweenOutput: 1200
38 userMessageOnFailure: >
39 Failed to build doc tools.
40 disable_if:
41 condition: runtime
42 env_var: TESTED_MODULE_COIN
43 contains_value: qtbase
44
45 - type: UploadArtifact
46 archiveDirectory: "{{.Env.QT_CI_DOC_TOOLS_INSTALL_DIR}}"
47 transferType: GenericArtifactWithName
48 filename: "static_doc_tools_{{.Env.TESTED_MODULE_COIN}}.tar.gz"
49 maxTimeInSeconds: 1200
50 maxTimeBetweenOutput: 1200
51 userMessageOnFailure: >
52 Failed to upload built doc tools.