1
1
name : Build SocNetV (CI) 🚀
2
2
# run-name: ${{ github.actor }} testing latest SocNetV build with
3
3
on : [push]
4
+
5
+
6
+ env :
7
+ EXECUTABLE : " SocNetV"
8
+ APPLICATION : " SocNetV"
9
+ UNIXNAME : " SocNetV"
10
+ QMAKE_PROJECT : " socnetv.pro"
11
+ PUBLISHER : " Dimitris Kalamaras"
12
+ QT_MODULES : " qtwebsockets qtimageformats qt5compat qtcharts qtdatavis3d qtwebview qt3d"
13
+ QMAKE_CONFIG : debug
14
+ CMAKE_CONFIG : Debug
15
+ CORES : 16
16
+
17
+
4
18
jobs :
5
19
build :
6
20
strategy :
@@ -46,28 +60,28 @@ jobs:
46
60
- if : contains( matrix.os, 'windows')
47
61
name : Prepare for Windows
48
62
run : |
49
- dir
63
+ echo "🪟 -- Preparing for Windows..."
50
64
# DONT NEED IT. FOR DEBUG ONLY
51
65
# pip install aqtinstall
52
- # aqt list-qt linux desktop
53
66
# aqt list-qt windows desktop
54
- # aqt list-qt mac desktop
55
67
# aqt list-qt windows desktop --arch ${{ matrix.qt-version }}
56
68
# aqt list-qt windows desktop --modules ${{ matrix.qt-version }} win64_mingw
57
69
- if : contains( matrix.os, 'ubuntu')
58
70
name : Install dependencies
59
71
run : |
60
- ls
72
+ echo "🐧 -- Preparing for ubuntu..."
73
+ sudo apt install build-essential libssl-dev \
74
+ cmake ninja-build \
75
+ libssl-dev libxkbcommon-x11-dev libxcb-cursor-dev zlib1g-dev
76
+
61
77
# DONT NEED IT. FOR DEBUG ONLY
62
78
# pip install aqtinstall
63
79
# aqt list-qt linux desktop
64
80
# aqt list-qt linux desktop --long-modules ${{ matrix.qt-version }} win64_mingw
65
- sudo apt install build-essential libssl-dev \
66
- cmake ninja-build \
67
- libssl-dev libxkbcommon-x11-dev libxcb-cursor-dev zlib1g-dev
68
81
- if : contains( matrix.os, 'macos')
69
82
name : Install for macOS
70
83
run : |
84
+ echo "🍎 -- Preparing for macos..."
71
85
ls
72
86
# DONT NEED IT. FOR DEBUG ONLY
73
87
# pip install aqtinstall
87
101
with :
88
102
aqtversion : ' ==2.0.0'
89
103
version : ${{ matrix.qt-version }}
90
- # arch: win64_mingw
104
+ # arch: win64_mingw # we build with msvc
91
105
modules : qtwebsockets qtimageformats qt5compat qtcharts qtdatavis3d qtwebview qt3d
92
106
cache : true
93
107
- if : contains( matrix.os, 'windows') && startsWith( matrix.qt-version, '6.' ) && matrix.qt-version != '6.2.4'
96
110
with :
97
111
aqtversion : ' ==2.1.*'
98
112
version : ${{ matrix.qt-version }}
99
- # arch: win64_mingw
113
+ # arch: win64_mingw # we build with msvc
100
114
modules : qtwebsockets qtimageformats qt5compat qtcharts qtdatavis3d qtwebview qt3d
101
115
cache : true
102
116
- if : contains( matrix.os, 'ubuntu') && startsWith( matrix.qt-version, '6.' )
@@ -120,71 +134,93 @@ jobs:
120
134
#
121
135
# Build SocNetV
122
136
#
137
+ - if : contains( matrix.os, 'ubuntu-22.04')
138
+ name : Build for Linux
139
+ run : |
140
+ echo "🔎 Check openssl version:"
141
+ echo `openssl version`
142
+ echo "🔎 Check output of 'which qmake6':"
143
+ which qmake6
144
+ echo "🔎 Check qmake6 version:"
145
+ qmake6 -v
146
+ echo "🔧 Running qmake on ubuntu 22.04..."
147
+ qmake6 CONFIG+=${{env.QMAKE_CONFIG}}
148
+ echo "🚧 🛠️ Compiling for linux with make. Please wait..."
149
+ make -j${{env.CORES}}
150
+ echo "👉 Building finished. Listing current directory with find for verification:"
151
+ find .
123
152
- if : contains( matrix.os, 'ubuntu-latest')
124
153
name : Build for Linux
125
154
run : |
126
- echo "openssl version:"
155
+ echo "🔎 Check openssl version:"
127
156
echo `openssl version`
128
- echo "Check output of 'which qmake6':"
157
+ echo "🔎 Check output of 'which qmake6':"
129
158
which qmake6
130
- echo "Check qmake6 -v :"
159
+ echo "🔎 Check qmake6 version :"
131
160
qmake6 -v
132
- qmake6 CONFIG+=debug && make -s -j 8
133
- echo "Building finished! "
134
- echo "Files in current directory: "
161
+ echo "🔧 Running qmake on ubuntu..."
162
+ qmake6 CONFIG+=${{env.QMAKE_CONFIG}}
163
+ echo "🚧 🛠️ Compiling for linux with make. Please wait..."
164
+ make
165
+ echo "👉 Building finished. Listing current directory with find for verification:"
135
166
find .
136
167
# BUILD FOR MACOS
137
168
- if : contains( matrix.os, 'macos')
138
169
name : Build for macOS
139
170
run : |
140
- qmake CONFIG+=debug socnetv.pro
141
- make -s -j 8
171
+ echo "🔧 Running qmake on macos..."
172
+ qmake CONFIG+=${{env.QMAKE_CONFIG}} ${{env.QMAKE_PROJECT}}
173
+ echo "🚧 🛠️ Compiling for macos with make. Please wait..."
174
+ make
175
+ echo "👉 Building finished. Listing current directory with find for verification:"
142
176
find .
143
177
# BUILD FOR WINDOWS
144
178
- if : contains( matrix.os, 'windows') && startsWith( matrix.qt-version, '6.' ) && matrix.qt-version == '6.2.4'
145
179
name : Build for Windows
146
180
run : |
147
- echo "Listing some directories"
181
+ echo "🔎 Listing some directories"
148
182
dir D:\a\app\Qt\
149
- echo "Running qmake6"
150
- qmake6 CONFIG+=debug socnetv.pro -r
151
- echo "Compiling, please wait..."
183
+ echo "🔧 Running qmake6"
184
+ qmake6 CONFIG+=${{env.QMAKE_CONFIG}} ${{env.QMAKE_PROJECT}} -r
185
+ echo "🚧 🛠️ Compiling with nmake. Please wait..."
152
186
nmake
187
+ echo "👉 Building finished. Listing current directory for verification:"
153
188
dir
154
189
- if : contains( matrix.os, 'windows') && startsWith( matrix.qt-version, '6.' ) && matrix.qt-version == '6.4.3'
155
190
name : Build for Windows
156
191
run : |
157
- echo "Listing some directories"
192
+ echo "🔎 Listing some directories"
158
193
dir D:\a\app\Qt\
159
- echo "Running qmake6"
160
- qmake6 CONFIG+=debug socnetv.pro -r
161
- echo "Compiling with nmake. Please wait..."
194
+ echo "🔧 Running qmake6"
195
+ qmake6 CONFIG+=${{env.QMAKE_CONFIG}} ${{env.QMAKE_PROJECT}} -r
196
+ echo "🚧 🛠️ Compiling with nmake. Please wait..."
162
197
nmake
198
+ echo "👉 Building finished. Listing current directory for verification:"
163
199
dir
164
200
- if : contains( matrix.os, 'windows') && startsWith( matrix.qt-version, '6.' ) && matrix.qt-version == '6.5.3'
165
201
name : Build for Windows
166
202
run : |
167
- echo "Listing some directories"
203
+ echo "🔎 Listing some directories"
168
204
dir D:\a\app\Qt\
169
- echo "Creating build dir"
205
+ echo "💡 Creating build dir"
170
206
mkdir build
171
- echo "Running cmake ... "
207
+ echo "🔧 Running cmake" "
172
208
cmake -S . -B build
173
- echo "Compiling with cmake at once. Please wait..."
174
- cmake --build build
209
+ echo "🚧 🛠️ Compiling into build/ with cmake --build. Please wait..."
210
+ cmake --build build ${{env.CMAKE_CONFIG}}
211
+ echo "👉 Building finished. Listing directory build/ for verification:"
175
212
dir build
176
213
- if : contains( matrix.os, 'windows') && startsWith( matrix.qt-version, '6.' ) && matrix.qt-version == '6.6.3'
177
214
name : Build for Windows
178
215
run : |
179
- echo "Listing some directories"
216
+ echo "🔎 Listing some directories"
180
217
dir D:\a\app\Qt\
181
- echo "Creating build dir"
218
+ echo "💡 Creating build dir"
182
219
mkdir build
183
- echo "Entering build dir"
184
- cd build
185
- echo "Running cmake"
186
- cmake ..
187
- echo "Compiling with nmake. Please wait..."
188
- nmake
220
+ echo "🔧 Running cmake"
221
+ cmake -S . -B build
222
+ echo "🚧 🛠️ Compiling into build/ with cmake --build. Please wait..."
223
+ cmake --build build --config ${{env.CMAKE_CONFIG}}
224
+ echo "👉 Building finished. Listing directory build/ for verification:"
189
225
dir build
190
226
- run : echo "🍏 This job's status is ${{ job.status }}."
0 commit comments