aboutsummaryrefslogtreecommitdiffstats
path: root/coin/platform_configs/macos.yaml
blob: 41075a548dde80944496bfe062c4a3b11386044e (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
Version: 2
Configurations:

    # =========================================================================
    # Packaging. Universal build with both x86_64 and arm64 architectures.
    # =========================================================================

    # Build on recent macOS version with latest Xcode

    -
        Id: 'macos-latest-xcode-universal-packaging-build'
        Template: 'qtci-macos-12-x86_64-105'
        Compiler: 'Clang'
        Target arch: 'x86_64-arm64'
        Features: ['Packaging', 'Sccache', 'DoNotRunTests', 'WarningsAreErrors', 'UseConfigure']
        Configure arguments: '-nomake examples -release -force-debug-info -separate-debug-info -headersclean -framework'
        Environment variables: [
            'CMAKE_ARGS=-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DODBC_ROOT=/usr/local/opt/libiodbc -DPostgreSQL_ROOT={{.Env.POSTGRESQLBINPATH}}/.. -DOPENSSL_ROOT_DIR={{.Env.OPENSSL_DIR}}',
            'NON_QTBASE_CMAKE_ARGS=-DFEATURE_gds=OFF -DFFMPEG_DIR={{.Env.FFMPEG_DIR}}',
            'Protobuf_ROOT=/usr/local/lib/cmake/protobuf',
            'CONAN_PROFILE=coin/conan/profiles/ci-macos-universal-clang'
        ]

    -
        Id: 'macos-latest-xcode-arm64-universal-build'
        Template: 'qtci-macos-12-arm64'
        Compiler: 'Clang'
        Target arch: 'x86_64-arm64'
        Features: ['DoNotRunTests', 'WarningsAreErrors', 'UseConfigure']
        Configure arguments: '-nomake examples -release -force-debug-info -separate-debug-info -headersclean -framework'
        Environment variables: [
            'CMAKE_ARGS=-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"',
            'Protobuf_ROOT=/usr/local/lib/cmake/protobuf',
            'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}'
        ]

    # Test on all supported macOS versions (deployment targets)

    -
        Id: 'macos-11-x86_64-tests'
        Template: 'qtci-macos-11-x86_64-105'
        Compiler: 'Clang'
        Features: ['Sccache', 'TestOnly', 'Packaging']
        Platform dependency: 'macos-latest-xcode-universal-packaging-build'
        Environment variables: [
            'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}'
        ]
    -
        Id: 'macos-11-arm64-tests'
        Template: 'qtci-macos-11.0-arm64'
        Compiler: 'Clang'
        Features: ['Sccache', 'TestOnly', 'Packaging']
        Platform dependency: 'macos-latest-xcode-universal-packaging-build'
        Environment variables: [
            'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}'
        ]
    -
        Id: 'macos-12-arm64-tests'
        Template: 'qtci-macos-12-arm64'
        Compiler: 'Clang'
        Features: ['Sccache', 'TestOnly', 'Packaging']
        Platform dependency: 'macos-latest-xcode-universal-packaging-build'
        Environment variables: [
            'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}'
        ]
    -
        Id: 'macos-13-arm64-tests'
        Template: 'qtci-macos-13-arm64'
        Compiler: 'Clang'
        Features: ['Sccache', 'TestOnly', 'Packaging']
        Platform dependency: 'macos-latest-xcode-universal-packaging-build'
        Environment variables: [
            'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}'
        ]
    -
        Id: 'macos-12-x86_64-tests'
        Template: 'qtci-macos-12-x86_64-105'
        Compiler: 'Clang'
        Features: ['Sccache', 'TestOnly', 'Packaging']
        Platform dependency: 'macos-latest-xcode-universal-packaging-build'
        Environment variables: [
            'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}'
        ]
    -
        Id: 'macos-12-arm64-arm64-universal-build-tests'
        Template: 'qtci-macos-12-arm64'
        Compiler: 'Clang'
        Features: ['Sccache', 'TestOnly']
        Platform dependency: 'macos-latest-xcode-arm64-universal-build'
        Environment variables: [
            'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}'
        ]
    -
        Id: 'macos-12-x86_64-arm64-universal-build-tests'
        Template: 'qtci-macos-12-x86_64-105'
        Compiler: 'Clang'
        Features: ['Sccache', 'TestOnly']
        Platform dependency: 'macos-latest-xcode-arm64-universal-build'
        Environment variables: [
            'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}'
        ]

    # =========================================================================
    # Developer build. Single architecture builds.
    # =========================================================================

    # Build on recent macOS version with latest Xcode

    -
        Id: 'macos-latest-xcode-x86_64-developer-build'
        Template: 'qtci-macos-12-x86_64-105'
        Compiler: 'Clang'
        Features: ['Sccache', 'DoNotRunTests', 'WarningsAreErrors', 'UseConfigure']
        Configure arguments: '-developer-build -release -force-debug-info -no-pch -no-framework -qtnamespace TestNamespace -make examples'
        Environment variables: [
            'CMAKE_ARGS=-DOPENSSL_ROOT_DIR={{.Env.OPENSSL_DIR}}',
            'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}',
            'Protobuf_ROOT=/usr/local/lib/cmake/protobuf',
        ]
    -
        Id: 'macos-latest-xcode-arm64-developer-build'
        Template: 'qtci-macos-12-arm64'
        Compiler: 'Clang'
        Features: ['DoNotRunTests', 'WarningsAreErrors', 'UseConfigure']
        Configure arguments: '-developer-build -nomake examples -release -force-debug-info -separate-debug-info -framework'
        Environment variables: [
            'Protobuf_ROOT=/usr/local/lib/cmake/protobuf',
            'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}'
        ]
        # Note: We do not include OpenSSL or PostgreSQL in this build,
        # as the M1 CI machines are not provisioned for that yet.

    # Test on all supported macOS versions (deployment targets)

    -
        Id: 'macos-11-x86_64-developer-build-tests'
        Template: 'qtci-macos-11-x86_64-105'
        Compiler: 'Clang'
        Features: ['Sccache', 'TestOnly']
        Platform dependency: 'macos-latest-xcode-x86_64-developer-build'
        Environment variables: [
            'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}'
        ]
    -
        Id: 'macos-11-arm64-developer-build-tests'
        Template: 'qtci-macos-11.0-arm64'
        Compiler: 'Clang'
        Features: ['TestOnly']
        Platform dependency: 'macos-latest-xcode-arm64-developer-build'
        Environment variables: [
            'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}'
        ]
    -
        Id: 'macos-12-x86_64-developer-build-tests'
        Template: 'qtci-macos-12-x86_64-105'
        Compiler: 'Clang'
        Features: ['Sccache', 'TestOnly']
        Platform dependency: 'macos-latest-xcode-x86_64-developer-build'
        Environment variables: [
            'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}'
        ]
    -
        Id: 'macos-12-arm64-developer-build-tests'
        Template: 'qtci-macos-12-arm64'
        Compiler: 'Clang'
        Features: ['TestOnly']
        Platform dependency: 'macos-latest-xcode-arm64-developer-build'
        Environment variables: [
            'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}'
        ]
    -
        Id: 'macos-13-arm64-developer-build-tests'
        Template: 'qtci-macos-13-arm64'
        Compiler: 'Clang'
        Features: ['TestOnly']
        Platform dependency: 'macos-latest-xcode-arm64-developer-build'
        Environment variables: [
            'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}'
        ]