-
-
Notifications
You must be signed in to change notification settings - Fork 3
683 lines (620 loc) · 33.2 KB
/
gix-ide-windows-packages.yml
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
name: gix-ide-windows-packages
on:
workflow_dispatch
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
env:
GIXIDEMAJ: 1
GIXIDEMIN: 1
GIXIDEREL: 1
GIX_REVISION: ${{ github.run_number }}
GIXSQLMAJ: 1
GIXSQLMIN: 1
GIXSQLREL: 19a
GIX_IDE_BRANCH: main
VCPKG_ROOT: C:\vcpkg
GIX_IDE_X64_BIN_DIR: gix-ide-windows-x64-msvc-artifacts
GIX_IDE_X86_BIN_DIR: gix-ide-windows-x86-msvc-artifacts
GIXSQL_MINGW_X86_BIN_DIR: gixsql-windows-x86-mingw-artifacts
GIXSQL_MINGW_X64_BIN_DIR: gixsql-windows-x64-mingw-artifacts
GNUCOBOL_BIN_VERSION: 3.1.2
GNUCOBOL_BIN_RELEASE: 20221030
MSVC_BUILD_TOOLS: https://aka.ms/vs/17/release/vs_BuildTools.exe
MSVC_RUNTIME_x86: https://aka.ms/vs/17/release/vc_redist.x86.exe
MSVC_RUNTIME_x64: https://aka.ms/vs/17/release/vc_redist.x64.exe
WORKSPACE: ${{ github.workspace }}
DIST_DIR: ${{ github.workspace }}\DIST
EXE_7Z: C:/Program Files/7-Zip/7z.exe
VCRTVER: 14.34.31931
VCTOOLSVER: 143
MSYS2_BASE: D:\
MSYS2_MINGW64_DIR: D:\msys64\mingw64
MSYS2_MINGW32_DIR: D:\msys64\mingw32
permissions:
contents: read
jobs:
gix-ide-windows-x64-msvc:
name: gix-ide-windows-x64-msvc
env:
BUILD_CONFIGURATION: Release
HOST_PLATFORM: x64
PLATFORM_ID: x64
SOLUTION_FILE_PATH: gix-ide.sln
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
repository: 'mridoni/gix'
submodules: true
ref: ${{ env.GIX_IDE_BRANCH }}
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.14.2'
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2017_64'
dir: '${{ github.workspace }}/'
install-deps: 'true'
archives: 'qtbase qttools qtwinextras qtxmlpatterns qtwebchannel qtwebsockets'
cache: 'true'
set-env: 'true'
tools-only: 'false'
- name: Install vcpkg packages (1)
uses: mridoni/my-vcpkg-action@v1
with:
pkgs: libpq libmariadb nng
triplet: ${{env.PLATFORM_ID}}-windows
cache-key: '${{env.PLATFORM_ID}}-rdynamic'
disable-cache: false
- name: Install vcpkg packages (2)
uses: mridoni/my-vcpkg-action@v1
with:
pkgs: spdlog
triplet: ${{env.PLATFORM_ID}}-windows-static-md
cache-key: '${{env.PLATFORM_ID}}-rstatic'
disable-cache: false
- name: Build
shell: cmd
working-directory: ${{ github.workspace }}
env:
QTDIR: ${{env.Qt5_Dir}}
QtMsBuild: ${{ github.workspace }}\QtMsBuild
QtToolsPath: ${{env.Qt5_Dir}}\bin
LIBPATH: ${{env.Qt5_Dir}}\lib
PATH: ${{ env.PATH}};c:\tools
run: |
echo VCPKG_ROOT : ${{env.VCPKG_ROOT}}
echo HOST_PLATFORM : ${{env.HOST_PLATFORM}}
echo BUILD_CONFIGURATION: ${{env.BUILD_CONFIGURATION}}
echo SOLUTION_FILE_PATH : ${{env.SOLUTION_FILE_PATH}}
echo QTDIR : ${{env.QTDIR}}
echo JOB : ${{ github.job }}
"%EXE_7Z%" x -y ${{ github.workspace }}\build-tools\QtMsBuild.zip
echo Preparing build (${{ github.workspace }}\prepbuild.cmd)
call ${{ github.workspace }}\prepbuild.cmd /E
echo Initializing vcpkg
%VCPKG_ROOT%\vcpkg integrate install
echo Running MSBuild
msbuild /p:Platform=${{env.HOST_PLATFORM}} /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} /p:IncludePath="${{env.Qt5_Dir}}/include;${{env.Qt5_Dir}}/include/QtCore;${{env.Qt5_Dir}}/include/QtWidgets;${{env.Qt5_Dir}}/include/QtXml;${{env.Qt5_Dir}}/include/QtXmlPatterns;${{env.Qt5_Dir}}/include/QtNetwork;${{env.Qt5_Dir}}/include/QtUiTools;${{env.Qt5_Dir}}/include/QtGui;${{ '$(IncludePath)' }}" /p:LibPath="${{env.Qt5_Dir}}/lib;${{ '$(LibPath)' }}" /p:AdditionalDependencies="${{env.QTDIR}}\lib\Qt5Widgets.lib" /p:AdditionalDependencies="${{env.QTDIR}}\lib\Qt5Gui.lib" /p:AdditionalDependencies="${{env.QTDIR}}\lib\Qt5Core.lib ${{env.QTDIR}}\lib\qtmain.lib"
mkdir ${{ github.workspace }}\deps-${{env.HOST_PLATFORM}}-msvc
copy "%VCPKG_ROOT%\installed\x64-windows\bin\libcrypto-3-x64.dll" ${{ github.workspace }}\deps-${{env.HOST_PLATFORM}}-msvc
copy "%VCPKG_ROOT%\installed\x64-windows\bin\libmariadb.dll" ${{ github.workspace }}\deps-${{env.HOST_PLATFORM}}-msvc
copy "%VCPKG_ROOT%\installed\x64-windows\bin\libpq.dll" ${{ github.workspace }}\deps-${{env.HOST_PLATFORM}}-msvc
copy "%VCPKG_ROOT%\installed\x64-windows\bin\libssl-3-x64.dll" ${{ github.workspace }}\deps-${{env.HOST_PLATFORM}}-msvc
copy "%VCPKG_ROOT%\installed\x64-windows\bin\zlib1.dll" ${{ github.workspace }}\deps-${{env.HOST_PLATFORM}}-msvc
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ github.job }}-artifacts
path: |
${{ github.workspace }}/${{env.PLATFORM_ID}}/${{env.BUILD_CONFIGURATION}}/*.dll
${{ github.workspace }}/${{env.PLATFORM_ID}}/${{env.BUILD_CONFIGURATION}}/libgixsql.lib
${{ github.workspace }}/${{env.PLATFORM_ID}}/${{env.BUILD_CONFIGURATION}}/*.exe
- name: Archive dependencies
uses: actions/upload-artifact@v3
with:
name: ${{ github.job }}-artifacts
path: |
${{ github.workspace }}/deps-${{env.HOST_PLATFORM}}-*/
gix-ide-windows-x86-msvc:
name: gix-ide-windows-x86-msvc
env:
BUILD_CONFIGURATION: Release
HOST_PLATFORM: x86
PLATFORM_ID: Win32
SOLUTION_FILE_PATH: gix-ide.sln
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
repository: 'mridoni/gix'
submodules: true
ref: ${{ env.GIX_IDE_BRANCH }}
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.14.2'
host: 'windows'
target: 'desktop'
arch: 'win32_msvc2017'
dir: '${{ github.workspace }}/'
install-deps: 'true'
archives: 'qtbase qttools qtwinextras qtxmlpatterns qtwebchannel qtwebsockets'
cache: 'true'
set-env: 'true'
tools-only: 'false'
- name: Install vcpkg packages (1)
uses: mridoni/my-vcpkg-action@v1
with:
pkgs: libpq libmariadb nng
triplet: ${{env.HOST_PLATFORM}}-windows
cache-key: '${{env.HOST_PLATFORM}}-rdynamic'
disable-cache: false
- name: Install vcpkg packages (2)
uses: mridoni/my-vcpkg-action@v1
with:
pkgs: spdlog
triplet: ${{env.HOST_PLATFORM}}-windows-static-md
cache-key: '${{env.HOST_PLATFORM}}-rstatic'
disable-cache: false
- name: Build
shell: cmd
working-directory: ${{ github.workspace }}
env:
QTDIR: ${{env.Qt5_Dir}}
QtMsBuild: ${{ github.workspace }}\QtMsBuild
QtToolsPath: ${{env.Qt5_Dir}}\bin
LIBPATH: ${{env.Qt5_Dir}}\lib
PATH: ${{ env.PATH}};c:\tools
run: |
echo "VCPKG_ROOT : ${{env.VCPKG_ROOT}}"
echo "HOST_PLATFORM : ${{env.HOST_PLATFORM}}"
echo "BUILD_CONFIGURATION: ${{env.BUILD_CONFIGURATION}}"
echo "SOLUTION_FILE_PATH : ${{env.SOLUTION_FILE_PATH}}"
echo "QTDIR : ${{env.QTDIR}}"
echo "JOB : ${{ github.job }}"
"%EXE_7Z%" x -y ${{ github.workspace }}\build-tools\QtMsBuild.zip
call ${{ github.workspace }}\prepbuild.cmd /E
%VCPKG_ROOT%\vcpkg integrate install
msbuild /p:Platform=${{env.PLATFORM_ID}} /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} /p:IncludePath="${{env.Qt5_Dir}}/include;${{env.Qt5_Dir}}/include/QtCore;${{env.Qt5_Dir}}/include/QtWidgets;${{env.Qt5_Dir}}/include/QtXml;${{env.Qt5_Dir}}/include/QtXmlPatterns;${{env.Qt5_Dir}}/include/QtNetwork;${{env.Qt5_Dir}}/include/QtUiTools;${{env.Qt5_Dir}}/include/QtGui;${{ '$(IncludePath)' }}" /p:LibPath="${{env.Qt5_Dir}}/lib;${{ '$(LibPath)' }}" /p:AdditionalDependencies="${{env.QTDIR}}\lib\Qt5Widgets.lib" /p:AdditionalDependencies="${{env.QTDIR}}\lib\Qt5Gui.lib" /p:AdditionalDependencies="${{env.QTDIR}}\lib\Qt5Core.lib ${{env.QTDIR}}\lib\qtmain.lib"
mkdir ${{ github.workspace }}\deps-${{env.HOST_PLATFORM}}-msvc
copy "%VCPKG_ROOT%\installed\x86-windows\bin\libcrypto-3.dll" ${{ github.workspace }}\deps-${{env.HOST_PLATFORM}}-msvc
copy "%VCPKG_ROOT%\installed\x86-windows\bin\libmariadb.dll" ${{ github.workspace }}\deps-${{env.HOST_PLATFORM}}-msvc
copy "%VCPKG_ROOT%\installed\x86-windows\bin\libpq.dll" ${{ github.workspace }}\deps-${{env.HOST_PLATFORM}}-msvc
copy "%VCPKG_ROOT%\installed\x86-windows\bin\libssl-3.dll" ${{ github.workspace }}\deps-${{env.HOST_PLATFORM}}-msvc
copy "%VCPKG_ROOT%\installed\x86-windows\bin\zlib1.dll" ${{ github.workspace }}\deps-${{env.HOST_PLATFORM}}-msvc
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ github.job }}-artifacts
path: |
${{ github.workspace }}/${{env.PLATFORM_ID }}/${{env.BUILD_CONFIGURATION}}/*.dll
${{ github.workspace }}/${{env.PLATFORM_ID }}/${{env.BUILD_CONFIGURATION}}/libgixsql.lib
${{ github.workspace }}/${{env.PLATFORM_ID }}/${{env.BUILD_CONFIGURATION}}/*.exe
- name: Archive dependencies
uses: actions/upload-artifact@v3
with:
name: ${{ github.job }}-artifacts
path: |
${{ github.workspace }}/deps-${{env.HOST_PLATFORM}}-*/
gixsql-windows-x64-mingw:
name: gixsql-windows-x64-mingw
env:
HOST_PLATFORM: x64
MSYS2_SYSTEM: mingw64
MSYS2_PLATFORM_ID: x86_64
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
repository: 'mridoni/gixsql'
- name: Set up MinGW
uses: msys2/setup-msys2@v2
with:
msystem: ${{env.MSYS2_SYSTEM}}
location: ${{ env.MSYS2_BASE }}
install: >-
mingw-w64-${{env.MSYS2_PLATFORM_ID}}-pkg-config
autoconf
make
automake
libtool
bison
flex
mingw-w64-${{env.MSYS2_PLATFORM_ID}}-gcc
mingw-w64-${{env.MSYS2_PLATFORM_ID}}-postgresql
mingw-w64-${{env.MSYS2_PLATFORM_ID}}-libmariadbclient
mingw-w64-${{env.MSYS2_PLATFORM_ID}}-unixodbc
mingw-w64-${{env.MSYS2_PLATFORM_ID}}-spdlog
- shell: msys2 {0}
name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
echo lt_cv_deplibs_check_method='pass_all' >> /etc/config.site
chmod 755 prepdist.sh && ./prepdist.sh
autoreconf --install --force
./configure --prefix=$(cygpath "${{ github.workspace }}/build-${{env.HOST_PLATFORM}}")
make
make install-strip
ls -lR /bin
export DEPS_DIR=$(cygpath "${{ github.workspace }}/deps-${{ env.HOST_PLATFORM }}-gcc")
mkdir $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libcrypto-1_1-x64.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libfmt.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libgcc_s_seh-1.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libintl-8.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libmariadb.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libpq.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libssl-1_1-x64.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libstdc++-6.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libwinpthread-1.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/zlib1.dll $DEPS_DIR
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ github.job }}-artifacts
path: |
${{ github.workspace }}/build-${{env.HOST_PLATFORM}}/bin/*.*
${{ github.workspace }}/build-${{env.HOST_PLATFORM}}/lib/*.*
- name: Archive dependencies
uses: actions/upload-artifact@v3
with:
name: ${{ github.job }}-artifacts
path: |
${{ github.workspace }}/deps-${{env.HOST_PLATFORM}}-*/
gixsql-windows-x86-mingw:
name: gixsql-windows-x86-mingw
env:
HOST_PLATFORM: x86
MSYS2_SYSTEM: mingw32
MSYS2_PLATFORM_ID: i686
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
repository: 'mridoni/gixsql'
- name: Set up MinGW
uses: msys2/setup-msys2@v2
with:
msystem: ${{env.MSYS2_SYSTEM}}
location: ${{ env.MSYS2_BASE }}
install: >-
mingw-w64-${{env.MSYS2_PLATFORM_ID}}-pkg-config
autoconf
make
automake
libtool
bison
flex
mingw-w64-${{ env.MSYS2_PLATFORM_ID }}-gcc
mingw-w64-${{ env.MSYS2_PLATFORM_ID }}-postgresql
mingw-w64-${{ env.MSYS2_PLATFORM_ID }}-libmariadbclient
mingw-w64-${{ env.MSYS2_PLATFORM_ID }}-unixodbc
mingw-w64-${{ env.MSYS2_PLATFORM_ID }}-spdlog
- shell: msys2 {0}
name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
echo lt_cv_deplibs_check_method='pass_all' >> /etc/config.site
chmod 755 prepdist.sh && ./prepdist.sh
autoreconf --install --force
./configure --prefix=$(cygpath "${{ github.workspace }}/build-${{env.HOST_PLATFORM}}")
make
make install-strip
ls -lR /bin
export DEPS_DIR=$(cygpath "${{ github.workspace }}/deps-${{ env.HOST_PLATFORM }}-gcc")
mkdir $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libcrypto-1_1.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libfmt.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libgcc_s_dw2-1.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libintl-8.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libmariadb.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libpq.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libssl-1_1.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libstdc++-6.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libwinpthread-1.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/libxml2-2.dll $DEPS_DIR
cp /${{ env.MSYS2_SYSTEM }}/bin/zlib1.dll $DEPS_DIR
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ github.job }}-artifacts
path: |
${{ github.workspace }}/build-${{env.HOST_PLATFORM}}/bin/*.*
${{ github.workspace }}/build-${{env.HOST_PLATFORM}}/lib/*.*
- name: Archive dependencies
uses: actions/upload-artifact@v3
with:
name: ${{ github.job }}-artifacts
path: |
${{ github.workspace }}/deps-${{env.HOST_PLATFORM}}-*/
gix-ide-installer-windows-x64:
name: gix-ide-installer-windows-x64
needs: [ gix-ide-windows-x64-msvc, gix-ide-windows-x86-msvc, gixsql-windows-x64-mingw, gixsql-windows-x86-mingw ]
env:
HOST_PLATFORM: x64
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
repository: 'mridoni/gix'
submodules: true
ref: ${{ env.GIX_IDE_BRANCH }}
- name: Download Gix-IDE x64
uses: actions/download-artifact@v3
with:
name: gix-ide-windows-x64-msvc-artifacts
path: ${{ github.workspace }}/gix-ide-windows-x64-msvc-artifacts
- name: Download Gix-IDE x86
uses: actions/download-artifact@v3
with:
name: gix-ide-windows-x86-msvc-artifacts
path: ${{ github.workspace }}/gix-ide-windows-x86-msvc-artifacts
- name: Download GixSQL x64 (MinGW)
uses: actions/download-artifact@v3
with:
name: gixsql-windows-x64-mingw-artifacts
path: ${{ github.workspace }}/gixsql-windows-x64-mingw-artifacts
- name: Download GixSQL x86 (MinGW)
uses: actions/download-artifact@v3
with:
name: gixsql-windows-x86-mingw-artifacts
path: ${{ github.workspace }}/gixsql-windows-x86-mingw-artifacts
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.14.2'
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2017_64'
dir: '${{ github.workspace }}/'
install-deps: 'true'
archives: 'qtbase qttools qtsvg qtwinextras qtxmlpatterns qtwebchannel qtwebsockets'
cache: 'true'
set-env: 'true'
tools-only: 'false'
- name: Prepare distribution directory
shell: cmd
working-directory: ${{ github.workspace }}
run: |
FOR /F "tokens=*" %%g IN ('vswhere -property installationPath') do (SET VSPATH=%%g)
mkdir ${{ github.workspace }}\redist\x86\msvc
mkdir ${{ github.workspace }}\redist\x64\msvc
mkdir ${{ github.workspace }}\redist\x86\gcc
mkdir ${{ github.workspace }}\redist\x64\gcc
mkdir ${{ env.DIST_DIR }}\bin
mkdir ${{ env.DIST_DIR }}\lib
mkdir ${{ env.DIST_DIR }}\lib\x64\msvc
mkdir ${{ env.DIST_DIR }}\lib\x64\gcc
mkdir ${{ env.DIST_DIR }}\lib\x86\msvc
mkdir ${{ env.DIST_DIR }}\lib\x86\gcc
mkdir ${{ env.DIST_DIR }}\lib\copy
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\gixpp.exe ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\gix-http.exe ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\gix-ide.exe ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\gixdbgr.exe ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\gix-common.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\nng.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\ScintillaEdit4.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\gix-debugger-x64.exe ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\gix-debugger-x86.exe ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\libgixsql.lib ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\libgixsql.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\libgixsql-mysql.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\libgixsql-odbc.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\libgixsql-pgsql.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\libgixsql-oracle.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\libgixsql-sqlite.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\libgixsql.lib ${{ env.DIST_DIR }}\lib\x64\msvc
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\libgixsql.dll ${{ env.DIST_DIR }}\lib\x64\msvc
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\libgixsql-mysql.dll ${{ env.DIST_DIR }}\lib\x64\msvc
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\libgixsql-odbc.dll ${{ env.DIST_DIR }}\lib\x64\msvc
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\libgixsql-pgsql.dll ${{ env.DIST_DIR }}\lib\x64\msvc
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\libgixsql-oracle.dll ${{ env.DIST_DIR }}\lib\x64\msvc
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\libgixsql-sqlite.dll ${{ env.DIST_DIR }}\lib\x64\msvc
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql.lib ${{ env.DIST_DIR }}\lib\x86\msvc
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql.dll ${{ env.DIST_DIR }}\lib\x86\msvc
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql-mysql.dll ${{ env.DIST_DIR }}\lib\x86\msvc
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql-odbc.dll ${{ env.DIST_DIR }}\lib\x86\msvc
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql-pgsql.dll ${{ env.DIST_DIR }}\lib\x86\msvc
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql-oracle.dll ${{ env.DIST_DIR }}\lib\x86\msvc
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql-sqlite.dll ${{ env.DIST_DIR }}\lib\x86\msvc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\lib\libgixsql.a ${{ env.DIST_DIR }}\lib\x86\gcc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\bin\libgixsql.dll ${{ env.DIST_DIR }}\lib\x86\gcc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\bin\libgixsql-mysql.dll ${{ env.DIST_DIR }}\lib\x86\gcc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\bin\libgixsql-odbc.dll ${{ env.DIST_DIR }}\lib\x86\gcc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\bin\libgixsql-pgsql.dll ${{ env.DIST_DIR }}\lib\x86\gcc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\bin\libgixsql-oracle.dll ${{ env.DIST_DIR }}\lib\x86\gcc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\bin\libgixsql-sqlite.dll ${{ env.DIST_DIR }}\lib\x86\gcc
copy ${{ env.GIXSQL_MINGW_X64_BIN_DIR }}\lib\libgixsql.a ${{ env.DIST_DIR }}\lib\x64\gcc
copy ${{ env.GIXSQL_MINGW_X64_BIN_DIR }}\bin\libgixsql.dll ${{ env.DIST_DIR }}\lib\x86\gcc
copy ${{ env.GIXSQL_MINGW_X64_BIN_DIR }}\bin\libgixsql-mysql.dll ${{ env.DIST_DIR }}\lib\x64\gcc
copy ${{ env.GIXSQL_MINGW_X64_BIN_DIR }}\bin\libgixsql-odbc.dll ${{ env.DIST_DIR }}\lib\x64\gcc
copy ${{ env.GIXSQL_MINGW_X64_BIN_DIR }}\bin\libgixsql-pgsql.dll ${{ env.DIST_DIR }}\lib\x64\gcc
copy ${{ env.GIXSQL_MINGW_X64_BIN_DIR }}\bin\libgixsql-oracle.dll ${{ env.DIST_DIR }}\lib\x64\gcc
copy ${{ env.GIXSQL_MINGW_X64_BIN_DIR }}\bin\libgixsql-sqlite.dll ${{ env.DIST_DIR }}\lib\x64\gcc
copy "%ProgramFiles(x86)%\Windows Kits\10\Debuggers\x64\dbghelp.dll" ${{ env.DIST_DIR }}\bin
- name: Add GixSQL dependencies
shell: cmd
working-directory: ${{ github.workspace }}
run: |
mkdir ${{ github.workspace }}\redist\deps\x64\msvc
mkdir ${{ github.workspace }}\redist\deps\x64\gcc
copy ${{ env.GIX_IDE_X64_BIN_DIR }}\deps-x64-msvc\*.* ${{ github.workspace }}\redist\deps\x64\msvc
copy ${{ env.GIXSQL_MINGW_X64_BIN_DIR }}\deps-x64-gcc\*.* ${{ github.workspace }}\redist\deps\x64\gcc
mkdir ${{ github.workspace }}\redist\deps\x86\msvc
mkdir ${{ github.workspace }}\redist\deps\x86\gcc
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\deps-x86-msvc\*.* ${{ github.workspace }}\redist\deps\x86\msvc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\deps-x86-gcc\*.* ${{ github.workspace }}\redist\deps\x86\gcc
- name: Add VC++ runtime
shell: cmd
working-directory: ${{ github.workspace }}
run: |
FOR /F "tokens=*" %%g IN ('vswhere -property installationPath') do (SET VSPATH=%%g)
mkdir ${{ github.workspace }}\redist\msvcrt\x64
copy "%VSPATH%\VC\Redist\MSVC\${{ env.VCRTVER }}\x64\Microsoft.VC${{ env.VCTOOLSVER }}.CRT\vcruntime140.dll" ${{ github.workspace }}\redist\msvcrt\x64
copy "%VSPATH%\VC\Redist\MSVC\${{ env.VCRTVER }}\x64\Microsoft.VC${{ env.VCTOOLSVER }}.CRT\vcruntime140_1.dll" ${{ github.workspace }}\redist\msvcrt\x64
copy "%VSPATH%\VC\Redist\MSVC\${{ env.VCRTVER }}\x64\Microsoft.VC${{ env.VCTOOLSVER }}.CRT\msvcp140.dll" ${{ github.workspace }}\redist\msvcrt\x64
copy "%VSPATH%\VC\Redist\MSVC\${{ env.VCRTVER }}\x64\Microsoft.VC${{ env.VCTOOLSVER }}.CRT\msvcp140_1.dll" ${{ github.workspace }}\redist\msvcrt\x64
copy "%VSPATH%\VC\Redist\MSVC\${{ env.VCRTVER }}\x64\Microsoft.VC${{ env.VCTOOLSVER }}.CRT\msvcp140_2.dll" ${{ github.workspace }}\redist\msvcrt\x64
mkdir ${{ github.workspace }}\redist\msvcrt\x86
copy "%VSPATH%\VC\Redist\MSVC\${{ env.VCRTVER }}\x86\Microsoft.VC${{ env.VCTOOLSVER }}.CRT\vcruntime140.dll" ${{ github.workspace }}\redist\msvcrt\x86
copy "%VSPATH%\VC\Redist\MSVC\${{ env.VCRTVER }}\x86\Microsoft.VC${{ env.VCTOOLSVER }}.CRT\vcruntime140_1.dll" ${{ github.workspace }}\redist\msvcrt\x86
copy "%VSPATH%\VC\Redist\MSVC\${{ env.VCRTVER }}\x86\Microsoft.VC${{ env.VCTOOLSVER }}.CRT\msvcp140.dll" ${{ github.workspace }}\redist\msvcrt\x86
copy "%VSPATH%\VC\Redist\MSVC\${{ env.VCRTVER }}\x86\Microsoft.VC${{ env.VCTOOLSVER }}.CRT\msvcp140_1.dll" ${{ github.workspace }}\redist\msvcrt\x86
copy "%VSPATH%\VC\Redist\MSVC\${{ env.VCRTVER }}\x86\Microsoft.VC${{ env.VCTOOLSVER }}.CRT\msvcp140_2.dll" ${{ github.workspace }}\redist\msvcrt\x86
- name: Build installer package
shell: cmd
env:
WORKSPACE: ${{ github.workspace }}
QTDIR: ${{ env.Qt5_Dir }}
GIX_VER: ${{ env.GIXIDEMAJ }}.${{ env.GIXIDEMIN }}.${{ env.GIXIDEREL }}-${{ env.GIX_REVISION }}
run: |
dir ${{ env.QTDIR }}\plugins
iscc.exe ${{ github.workspace }}\deploy\installers\windows\gix-ide.iss
ren ${{ github.workspace }}\deploy\installers\msvc-${{ env.HOST_PLATFORM }}\Gix-IDE-${{ env.GIX_VER }}-installer.exe Gix-IDE-windows-${{ env.HOST_PLATFORM }}-${{ env.GIX_VER }}-installer.exe
- name: Archive production artifacts
uses: actions/upload-artifact@v3
env:
GIX_VER: ${{ env.GIXIDEMAJ }}.${{ env.GIXIDEMIN }}.${{ env.GIXIDEREL }}-${{ env.GIX_REVISION }}
with:
name: gix-ide-installer-windows-${{ env.HOST_PLATFORM }}
path: ${{ github.workspace }}\deploy\installers\msvc-${{ env.HOST_PLATFORM }}\Gix-IDE-windows-${{ env.HOST_PLATFORM }}-${{ env.GIX_VER }}-installer.exe
gix-ide-installer-windows-x86:
name: gix-ide-installer-windows-x86
needs: [ gix-ide-windows-x86-msvc, gixsql-windows-x86-mingw ]
env:
HOST_PLATFORM: x86
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
repository: 'mridoni/gix'
submodules: true
ref: ${{ env.GIX_IDE_BRANCH }}
- name: Download Gix-IDE x86
uses: actions/download-artifact@v3
with:
name: gix-ide-windows-x86-msvc-artifacts
path: ${{ github.workspace }}/gix-ide-windows-x86-msvc-artifacts
- name: Download GixSQL x86 (MinGW)
uses: actions/download-artifact@v3
with:
name: gixsql-windows-x86-mingw-artifacts
path: ${{ github.workspace }}/gixsql-windows-x86-mingw-artifacts
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.14.2'
host: 'windows'
target: 'desktop'
arch: 'win32_msvc2017'
dir: '${{ github.workspace }}/'
install-deps: 'true'
archives: 'qtbase qttools qtsvg qtwinextras qtxmlpatterns qtwebchannel qtwebsockets'
cache: 'true'
set-env: 'true'
tools-only: 'false'
- name: Prepare distribution directory
shell: cmd
working-directory: ${{ github.workspace }}
run: |
FOR /F "tokens=*" %%g IN ('vswhere -property installationPath') do (SET VSPATH=%%g)
mkdir ${{ github.workspace }}\redist\deps\x86\msvc
mkdir ${{ github.workspace }}\redist\deps\x86\gcc
mkdir ${{ env.DIST_DIR }}\bin
mkdir ${{ env.DIST_DIR }}\lib
mkdir ${{ env.DIST_DIR }}\lib\x86\msvc
mkdir ${{ env.DIST_DIR }}\lib\x86\gcc
mkdir ${{ env.DIST_DIR }}\lib\copy
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\gixpp.exe ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\gix-http.exe ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\gix-ide.exe ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\gixdbgr.exe ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\gix-common.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\nng.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\ScintillaEdit4.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\gix-debugger-x86.exe ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql.lib ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql-mysql.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql-odbc.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql-pgsql.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql-oracle.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql-sqlite.dll ${{ env.DIST_DIR }}\bin
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql.lib ${{ env.DIST_DIR }}\lib\x86\msvc
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql.dll ${{ env.DIST_DIR }}\lib\x86\msvc
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql-mysql.dll ${{ env.DIST_DIR }}\lib\x86\msvc
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql-odbc.dll ${{ env.DIST_DIR }}\lib\x86\msvc
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql-pgsql.dll ${{ env.DIST_DIR }}\lib\x86\msvc
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql-oracle.dll ${{ env.DIST_DIR }}\lib\x86\msvc
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\libgixsql-sqlite.dll ${{ env.DIST_DIR }}\lib\x86\msvc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\lib\libgixsql.a ${{ env.DIST_DIR }}\lib\x86\gcc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\bin\libgixsql.dll ${{ env.DIST_DIR }}\lib\x86\gcc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\bin\libgixsql-mysql.dll ${{ env.DIST_DIR }}\lib\x86\gcc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\bin\libgixsql-odbc.dll ${{ env.DIST_DIR }}\lib\x86\gcc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\bin\libgixsql-pgsql.dll ${{ env.DIST_DIR }}\lib\x86\gcc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\bin\libgixsql-oracle.dll ${{ env.DIST_DIR }}\lib\x86\gcc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\bin\libgixsql-sqlite.dll ${{ env.DIST_DIR }}\lib\x86\gcc
copy "%ProgramFiles(x86)%\Windows Kits\10\Debuggers\x86\dbghelp.dll" ${{ env.DIST_DIR }}\bin
- name: Add GixSQL dependencies
shell: cmd
working-directory: ${{ github.workspace }}
run: |
mkdir ${{ github.workspace }}\redist\deps\x86\msvc
mkdir ${{ github.workspace }}\redist\deps\x86\gcc
copy ${{ env.GIX_IDE_X86_BIN_DIR }}\deps-x86-msvc\*.* ${{ github.workspace }}\redist\deps\x86\msvc
copy ${{ env.GIXSQL_MINGW_X86_BIN_DIR }}\deps-x86-gcc\*.* ${{ github.workspace }}\redist\deps\x86\gcc
- name: Add VC++ runtime
shell: cmd
working-directory: ${{ github.workspace }}
run: |
FOR /F "tokens=*" %%g IN ('vswhere -property installationPath') do (SET VSPATH=%%g)
mkdir ${{ github.workspace }}\redist\msvcrt\x86
copy "%VSPATH%\VC\Redist\MSVC\${{ env.VCRTVER }}\x86\Microsoft.VC${{ env.VCTOOLSVER }}.CRT\vcruntime140.dll" ${{ github.workspace }}\redist\msvcrt\x86
copy "%VSPATH%\VC\Redist\MSVC\${{ env.VCRTVER }}\x86\Microsoft.VC${{ env.VCTOOLSVER }}.CRT\vcruntime140_1.dll" ${{ github.workspace }}\redist\msvcrt\x86
copy "%VSPATH%\VC\Redist\MSVC\${{ env.VCRTVER }}\x86\Microsoft.VC${{ env.VCTOOLSVER }}.CRT\msvcp140.dll" ${{ github.workspace }}\redist\msvcrt\x86
copy "%VSPATH%\VC\Redist\MSVC\${{ env.VCRTVER }}\x86\Microsoft.VC${{ env.VCTOOLSVER }}.CRT\msvcp140_1.dll" ${{ github.workspace }}\redist\msvcrt\x86
copy "%VSPATH%\VC\Redist\MSVC\${{ env.VCRTVER }}\x86\Microsoft.VC${{ env.VCTOOLSVER }}.CRT\msvcp140_2.dll" ${{ github.workspace }}\redist\msvcrt\x86
- name: Build installer package
shell: cmd
env:
WORKSPACE: ${{ github.workspace }}
QTDIR: ${{ env.Qt5_Dir }}
GIX_VER: ${{ env.GIXIDEMAJ }}.${{ env.GIXIDEMIN }}.${{ env.GIXIDEREL }}-${{ env.GIX_REVISION }}
run: |
dir ${{ env.QTDIR }}\plugins
iscc.exe ${{ github.workspace }}\deploy\installers\windows\gix-ide.iss
ren ${{ github.workspace }}\deploy\installers\msvc-${{ env.HOST_PLATFORM }}\Gix-IDE-${{ env.GIX_VER }}-installer.exe Gix-IDE-windows-${{ env.HOST_PLATFORM }}-${{ env.GIX_VER }}-installer.exe
- name: Archive production artifacts
uses: actions/upload-artifact@v3
env:
GIX_VER: ${{ env.GIXIDEMAJ }}.${{ env.GIXIDEMIN }}.${{ env.GIXIDEREL }}-${{ env.GIX_REVISION }}
with:
name: gix-ide-installer-windows-${{ env.HOST_PLATFORM }}
path: ${{ github.workspace }}\deploy\installers\msvc-${{ env.HOST_PLATFORM }}\Gix-IDE-windows-${{ env.HOST_PLATFORM }}-${{ env.GIX_VER }}-installer.exe
build-cleanup:
name: build-cleanup
needs: [ gix-ide-installer-windows-x64, gix-ide-installer-windows-x86 ]
runs-on: windows-latest
steps:
- uses: geekyeggo/delete-artifact@v2
with:
name: |
gix-ide-windows-x64-msvc-artifacts
gix-ide-windows-x86-msvc-artifacts
gixsql-windows-x86-mingw-artifacts
gixsql-windows-x64-mingw-artifacts