-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
150 lines (143 loc) · 4.7 KB
/
Jenkinsfile
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
pipeline {
agent { label 'jenkinsfile' }
stages {
stage('Preamble') {
parallel {
stage('x86_64 windows vs2022') {
agent { label 'windows11 && vs2022' }
options { skipDefaultCheckout() }
steps {
cleanWs()
checkout scm
bat """
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
if not %ERRORLEVEL% == 0 exit /b %ERRORLEVEL%
path %PATH%;"c:\\opt\\qt6\\bin"
call "winbuild-msvc.bat" -DCMAKE_PREFIX_PATH=c:/opt/qt6 -DENABLE_WIX=TRUE -DSUPPRESS_WIX_VALIDATION=TRUE
if not %ERRORLEVEL% == 0 exit /b %ERRORLEVEL%
ctest -j %NUMBER_OF_PROCESSORS% --output-on-failure
exit /b %ERRORLEVEL%
"""
}
}
stage('x86_64 windows clang') {
agent { label 'windows11 && vs2022' }
options { skipDefaultCheckout() }
steps {
cleanWs()
checkout scm
bat """
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
if not %ERRORLEVEL% == 0 exit /b %ERRORLEVEL%
path %PATH%;"c:\\opt\\qt6\\bin"
call "winbuild-clang.bat" -DCMAKE_PREFIX_PATH=c:/opt/qt6 -DENABLE_WIX=TRUE -DSUPPRESS_WIX_VALIDATION=TRUE
if not %ERRORLEVEL% == 0 exit /b %ERRORLEVEL%
ctest -j %NUMBER_OF_PROCESSORS% --output-on-failure
exit /b %ERRORLEVEL%
"""
}
}
stage('x86_64 linux clang-18') {
agent { label 'x86_64 && ubuntu24' }
options { skipDefaultCheckout() }
steps {
cleanWs()
checkout scm
sh '''
echo "x86_64 clang-18 on" `hostname`
export CC=clang-18
export CXX=clang++-18
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../../install ..
cmake -E time ninja
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
'''
}
}
stage('x86_64 linux gcc-13') {
agent { label 'x86_64 && ubuntu24' }
options { skipDefaultCheckout() }
steps {
cleanWs()
checkout scm
sh '''
echo "x86_64 gcc-11 on" `hostname`
export CC=gcc-13
export CXX=g++-13
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../../install ..
cmake -E time ninja
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
'''
}
}
stage('aarch64 linux gcc-11') {
agent { label 'aarch64 && ubuntu22' }
options { skipDefaultCheckout() }
steps {
cleanWs()
checkout scm
sh '''
echo "aarch64 gcc-11 on" `hostname`
export CC=gcc-11
export CXX=g++-11
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../../install ..
cmake -E time ninja
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
'''
}
}
stage('aarch64 linux clang-18') {
agent { label 'aarch64 && ubuntu24' }
options { skipDefaultCheckout() }
steps {
cleanWs()
checkout scm
sh '''
echo "aarch64 clang-18 on" `hostname`
export CC=clang-18
export CXX=clang++-18
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../../install ..
cmake -E time ninja
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
'''
}
}
stage('aarch64 macos clang-17') {
agent { label 'macos' }
options { skipDefaultCheckout() }
steps {
cleanWs()
checkout scm
sh '''
eval "$(/opt/homebrew/bin/brew shellenv)"
export CC=/opt/homebrew/opt/llvm@17/bin/clang-17
export CXX=/opt/homebrew/opt/llvm@17/bin/clang++
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../../install ..
cmake -E time ninja
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `sysctl -n hw.physicalcpu`
'''
}
}
}
}
}
}