summaryrefslogtreecommitdiffstats
path: root/coin/instructions/make_instructions.yaml
blob: 6618d7ef267cc1ed090486262e72aa279a51435c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
type: Group
instructions:
  - type: Group
    instructions:
      - type: ExecuteCommand
        command: Mingw32-make
        maxTimeInSeconds: 36000
        maxTimeBetweenOutput: 3600
        userMessageOnFailure: "Failed to run make, check logs."
      - type: ExecuteCommand
        command: "Mingw32-make -j1 install INSTALL_ROOT={{.InstallRoot}}"
        maxTimeInSeconds: 1800
        maxTimeBetweenOutput: 600
        userMessageOnFailure: "Failed to run make install, check logs."
    enable_if:
      condition: and
      conditions:
        - condition: property
          property: host.os
          equals_value: Windows
        - condition: property
          property: target.compiler
          in_values: [Mingw53, Mingw73, Clang]

  - type: Group
    instructions:
      - type: ExecuteCommand
        command: make
        maxTimeInSeconds: 36000
        maxTimeBetweenOutput: 3600
        userMessageOnFailure: "Failed to run make, check logs."
      - type: ExecuteCommand
        command: "make install INSTALL_ROOT={{.InstallRoot}}"
        maxTimeInSeconds: 1800
        maxTimeBetweenOutput: 600
        userMessageOnFailure: "Failed to run install, check logs."
    enable_if:
      condition: and
      conditions:
        - condition: property
          property: host.os
          not_equals_value: Windows
        - condition: property
          property: target.compiler
          in_values: [GCC, Clang, ICC_17, ICC_18]

  - type: Group
    instructions:
      - type: ExecuteCommand
        command: "jom"
        maxTimeInSeconds: 36000
        maxTimeBetweenOutput: 3600
        userMessageOnFailure: "Failed to run jom/make, check logs."
      - type: ExecuteCommand
        command: "nmake install INSTALL_ROOT={{.InstallRoot}}"
        maxTimeInSeconds: 1800
        maxTimeBetweenOutput: 600
        userMessageOnFailure: "Failed to run nmake install, check logs."
    enable_if:
      condition: property
      property: target.compiler
      in_values: [MSVC2013, MSVC2015, MSVC2017, MSVC2019]

  - type: UploadArtifact
    archiveDirectory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
    transferType: UploadModuleBuildArtifact
    maxTimeInSeconds: 1800
    maxTimeBetweenOutput: 1800