-
Notifications
You must be signed in to change notification settings - Fork 2
1787 lines (1656 loc) · 114 KB
/
cmake.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
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
name: CMake
on:
workflow_dispatch
env:
BUILD_TYPE: Release
BOOST_VERSION: 1.81.0
PROTO_VERSION: 21.10
PAHO_C_VERSION: 1.3.11
PAHO_CPP_VERSION: 1.2.0
jobs:
build:
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
- windows-2019
include:
- os: ubuntu-20.04
os_version: 20.04
build_tool: gcc
- os: ubuntu-22.04
os_version: 22.04
build_tool: gcc
- os: windows-2019
os_version: 2019
build_tool: msvc142
runs-on: ${{ matrix.os }}
permissions:
contents: write
outputs:
release_version: ${{ steps.version-numbers.outputs.prometheus_version }}
steps:
- uses: actions/checkout@v3
with:
path: WISE_Application
- uses: actions/checkout@v3
with:
repository: WISE-Developers/WISE_Versions
path: versions
token: ${{ secrets.WISE_PAT }}
- uses: actions/checkout@v3
with:
repository: WISE-Developers/WISE_Processing_Lib
path: WISE_Processing_Lib
token: ${{ secrets.WISE_PAT }}
- uses: actions/checkout@v3
with:
repository: WISE-Developers/REDapp_Lib
path: REDapp_Lib
token: ${{ secrets.WISE_PAT }}
- uses: actions/checkout@v3
with:
repository: WISE-Developers/WISE_REDapp_Lib_Wrapper
path: WISE_REDapp_Lib_Wrapper
token: ${{ secrets.WISE_PAT }}
- uses: actions/checkout@v3
with:
repository: WISE-Developers/WISE_FWI_Module
path: WISE_FWI_Module
token: ${{ secrets.WISE_PAT }}
- uses: actions/checkout@v3
with:
repository: WISE-Developers/WISE_FBP_Module
path: WISE_FBP_Module
token: ${{ secrets.WISE_PAT }}
- uses: actions/checkout@v3
with:
repository: WISE-Developers/WISE_Grid_Module
path: WISE_Grid_Module
token: ${{ secrets.WISE_PAT }}
- uses: actions/checkout@v3
with:
repository: WISE-Developers/WISE_Weather_Module
path: WISE_Weather_Module
token: ${{ secrets.WISE_PAT }}
- uses: actions/checkout@v3
with:
repository: WISE-Developers/WISE_Scenario_Growth_Module
path: WISE_Scenario_Growth_Module
token: ${{ secrets.WISE_PAT }}
- uses: actions/checkout@v3
with:
repository: WISE-Developers/WISE_Communications_Module
path: WISE_Communications_Module
token: ${{ secrets.WISE_PAT }}
- uses: actions/checkout@v3
with:
repository: microsoft/GSL
path: GSL
token: ${{ secrets.WISE_PAT }}
ref: refs/tags/v4.0.0
- uses: actions/checkout@v3
with:
repository: eclipse/paho.mqtt.c
path: paho
token: ${{ secrets.WISE_PAT }}
ref: refs/tags/v${{ env.PAHO_C_VERSION }}
- uses: actions/checkout@v3
with:
repository: eclipse/paho.mqtt.cpp
path: pahopp
token: ${{ secrets.WISE_PAT }}
ref: refs/tags/v${{ env.PAHO_CPP_VERSION }}
- name: Download LowLevel include files
uses: robinraju/[email protected]
with:
repository: "HeartlandSoftware/HSS_LowLevel"
latest: true
fileName: "includes.zip"
tarBall: false
zipBall: false
out-file-path: "HSS_LowLevel"
token: ${{ secrets.WISE_PAT }}
- name: Download ErrorCalc include files
uses: robinraju/[email protected]
with:
repository: "HeartlandSoftware/ErrorCalc2"
latest: true
fileName: "includes.zip"
tarBall: false
zipBall: false
out-file-path: "ErrorCalc"
token: ${{ secrets.WISE_PAT }}
- name: Download Multithread include files
uses: robinraju/[email protected]
with:
repository: "HeartlandSoftware/HSS_Multithread2"
latest: true
fileName: "includes.zip"
tarBall: false
zipBall: false
out-file-path: "HSS_Multithread"
token: ${{ secrets.WISE_PAT }}
- name: Download Math include files
uses: robinraju/[email protected]
with:
repository: "HeartlandSoftware/HSS_Math_2"
latest: true
fileName: "includes.zip"
tarBall: false
zipBall: false
out-file-path: "HSS_Math"
token: ${{ secrets.WISE_PAT }}
- name: Download Geography include files
uses: robinraju/[email protected]
with:
repository: "HeartlandSoftware/HSS_Geography_2"
latest: true
fileName: "includes.zip"
tarBall: false
zipBall: false
out-file-path: "HSS_Geography"
token: ${{ secrets.WISE_PAT }}
- name: Download Geography include files
uses: robinraju/[email protected]
with:
repository: "HeartlandSoftware/WTime"
latest: true
fileName: "includes.zip"
tarBall: false
zipBall: false
out-file-path: "WTime"
token: ${{ secrets.WISE_PAT }}
- name: Download Math protobuf files
uses: robinraju/[email protected]
with:
repository: "HeartlandSoftware/HSS_Math_2"
latest: true
fileName: "proto_def.zip"
tarBall: false
zipBall: false
out-file-path: "proto/HSS_Math"
token: ${{ secrets.WISE_PAT }}
- name: Download Geography protobuf files
uses: robinraju/[email protected]
with:
repository: "HeartlandSoftware/HSS_Geography_2"
latest: true
fileName: "proto_def.zip"
tarBall: false
zipBall: false
out-file-path: "proto/HSS_Geography"
token: ${{ secrets.WISE_PAT }}
- name: Download Math protobuf files
uses: robinraju/[email protected]
with:
repository: "HeartlandSoftware/WTime"
latest: true
fileName: "proto_def.zip"
tarBall: false
zipBall: false
out-file-path: "proto/WTime"
token: ${{ secrets.WISE_PAT }}
- name: Download LowLevel lib (Win)
uses: robinraju/[email protected]
if: matrix.os == 'windows-2019'
with:
repository: "HeartlandSoftware/HSS_LowLevel"
latest: true
fileName: "windows.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/HSS_LowLevel"
token: ${{ secrets.WISE_PAT }}
- name: Download LowLevel lib (Ubuntu 20.04)
uses: robinraju/[email protected]
if: matrix.os == 'ubuntu-20.04'
with:
repository: "HeartlandSoftware/HSS_LowLevel"
latest: true
fileName: "ubuntu20.04.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/HSS_LowLevel"
token: ${{ secrets.WISE_PAT }}
- name: Download LowLevel lib (Ubuntu 22.04)
uses: robinraju/[email protected]
if: matrix.os == 'ubuntu-22.04'
with:
repository: "HeartlandSoftware/HSS_LowLevel"
latest: true
fileName: "ubuntu22.04.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/HSS_LowLevel"
token: ${{ secrets.WISE_PAT }}
- name: Download ErrorCalc lib (Win)
uses: robinraju/[email protected]
if: matrix.os == 'windows-2019'
with:
repository: "HeartlandSoftware/ErrorCalc2"
latest: true
fileName: "windows.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/ErrorCalc"
token: ${{ secrets.WISE_PAT }}
- name: Download ErrorCalc lib (Ubuntu 20.04)
uses: robinraju/[email protected]
if: matrix.os == 'ubuntu-20.04'
with:
repository: "HeartlandSoftware/ErrorCalc2"
latest: true
fileName: "ubuntu20.04.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/ErrorCalc"
token: ${{ secrets.WISE_PAT }}
- name: Download ErrorCalc lib Ubuntu 22.04)
uses: robinraju/[email protected]
if: matrix.os == 'ubuntu-22.04'
with:
repository: "HeartlandSoftware/ErrorCalc2"
latest: true
fileName: "ubuntu22.04.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/ErrorCalc"
token: ${{ secrets.WISE_PAT }}
- name: Download Multithread lib (Win)
uses: robinraju/[email protected]
if: matrix.os == 'windows-2019'
with:
repository: "HeartlandSoftware/HSS_Multithread2"
latest: true
fileName: "lib-Windows-2019.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/HSS_Multithread"
token: ${{ secrets.WISE_PAT }}
- name: Download Multithread lib (Ubuntu 20.04)
uses: robinraju/[email protected]
if: matrix.os == 'ubuntu-20.04'
with:
repository: "HeartlandSoftware/HSS_Multithread2"
latest: true
fileName: "lib-Ubuntu-20.04.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/HSS_Multithread"
token: ${{ secrets.WISE_PAT }}
- name: Download Multithread lib Ubuntu 22.04)
uses: robinraju/[email protected]
if: matrix.os == 'ubuntu-22.04'
with:
repository: "HeartlandSoftware/HSS_Multithread2"
latest: true
fileName: "lib-Ubuntu-22.04.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/HSS_Multithread"
token: ${{ secrets.WISE_PAT }}
- name: Download Math lib (Win)
uses: robinraju/[email protected]
if: matrix.os == 'windows-2019'
with:
repository: "HeartlandSoftware/HSS_Math_2"
latest: true
fileName: "lib-Windows-2019.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/HSS_Math"
token: ${{ secrets.WISE_PAT }}
- name: Download Math lib (Ubuntu 20.04)
uses: robinraju/[email protected]
if: matrix.os == 'ubuntu-20.04'
with:
repository: "HeartlandSoftware/HSS_Math_2"
latest: true
fileName: "lib-Ubuntu-20.04.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/HSS_Math"
token: ${{ secrets.WISE_PAT }}
- name: Download Math lib (Ubuntu 22.04)
uses: robinraju/[email protected]
if: matrix.os == 'ubuntu-22.04'
with:
repository: "HeartlandSoftware/HSS_Math_2"
latest: true
fileName: "lib-Ubuntu-22.04.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/HSS_Math"
token: ${{ secrets.WISE_PAT }}
- name: Download Geography lib (Win)
uses: robinraju/[email protected]
if: matrix.os == 'windows-2019'
with:
repository: "HeartlandSoftware/HSS_Geography_2"
latest: true
fileName: "lib-Windows-2019.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/HSS_Geography"
token: ${{ secrets.WISE_PAT }}
- name: Download Geography lib (Ubuntu 20.04)
uses: robinraju/[email protected]
if: matrix.os == 'ubuntu-20.04'
with:
repository: "HeartlandSoftware/HSS_Geography_2"
latest: true
fileName: "lib-Ubuntu-20.04.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/HSS_Geography"
token: ${{ secrets.WISE_PAT }}
- name: Download Geography lib (Ubuntu 22.04)
uses: robinraju/[email protected]
if: matrix.os == 'ubuntu-22.04'
with:
repository: "HeartlandSoftware/HSS_Geography_2"
latest: true
fileName: "lib-Ubuntu-22.04.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/HSS_Geography"
token: ${{ secrets.WISE_PAT }}
- name: Download WTime lib (Win)
uses: robinraju/[email protected]
if: matrix.os == 'windows-2019'
with:
repository: "HeartlandSoftware/WTime"
latest: true
fileName: "lib-Windows-2019.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/WTime"
token: ${{ secrets.WISE_PAT }}
- name: Download WTime lib (Ubuntu 20.04)
uses: robinraju/[email protected]
if: matrix.os == 'ubuntu-20.04'
with:
repository: "HeartlandSoftware/WTime"
latest: true
fileName: "lib-Ubuntu-20.04.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/WTime"
token: ${{ secrets.WISE_PAT }}
- name: Download WTime lib (Ubuntu 22.04)
uses: robinraju/[email protected]
if: matrix.os == 'ubuntu-22.04'
with:
repository: "HeartlandSoftware/WTime"
latest: true
fileName: "lib-Ubuntu-22.04.zip"
tarBall: false
zipBall: false
out-file-path: "dlibs/WTime"
token: ${{ secrets.WISE_PAT }}
- name: Unarchive downloaded include files
shell: pwsh
run: |
Expand-Archive proto/HSS_Math/proto_def.zip -DestinationPath . -Force
Expand-Archive proto/HSS_Geography/proto_def.zip -DestinationPath . -Force
Expand-Archive proto/WTime/proto_def.zip -DestinationPath . -Force
Copy-Item WISE_FBP_Module/proto/*.proto -Destination proto -Force
Copy-Item WISE_Grid_Module/proto/*.proto -Destination proto -Force
Copy-Item WISE_Weather_Module/proto/*.proto -Destination proto -Force
Copy-Item WISE_Scenario_Growth_Module/proto/*.proto -Destination proto -Force
Copy-Item WISE_Application/WISE_Project/proto/*.proto -Destination proto -Force
Expand-Archive HSS_LowLevel/includes.zip -DestinationPath HSS_LowLevel
Expand-Archive ErrorCalc/includes.zip -DestinationPath ErrorCalc
Expand-Archive HSS_Multithread/includes.zip -DestinationPath HSS_Multithread
Expand-Archive HSS_Math/includes.zip -DestinationPath HSS_Math
Expand-Archive HSS_Geography/includes.zip -DestinationPath HSS_Geography
Expand-Archive WTime/includes.zip -DestinationPath WTime
- name: Unarchive downloaded Windows libraries
if: matrix.os == 'windows-2019'
shell: pwsh
run: |
Expand-Archive dlibs/HSS_LowLevel/windows.zip -DestinationPath dlibs
Expand-Archive dlibs/ErrorCalc/windows.zip -DestinationPath dlibs
Expand-Archive dlibs/HSS_Multithread/lib-Windows-2019.zip -DestinationPath dlibs
Expand-Archive dlibs/HSS_Math/lib-Windows-2019.zip -DestinationPath dlibs
Expand-Archive dlibs/HSS_Geography/lib-Windows-2019.zip -DestinationPath dlibs
Expand-Archive dlibs/WTime/lib-Windows-2019.zip -DestinationPath dlibs
- name: Unarchive downloaded Ubuntu 20.04 libraries
if: matrix.os == 'ubuntu-20.04'
shell: pwsh
run: |
Expand-Archive dlibs/HSS_LowLevel/ubuntu20.04.zip -DestinationPath dlibs
Expand-Archive dlibs/ErrorCalc/ubuntu20.04.zip -DestinationPath dlibs
Expand-Archive dlibs/HSS_Multithread/lib-Ubuntu-20.04.zip -DestinationPath dlibs
Expand-Archive dlibs/HSS_Math/lib-Ubuntu-20.04.zip -DestinationPath dlibs
Expand-Archive dlibs/HSS_Geography/lib-Ubuntu-20.04.zip -DestinationPath dlibs
Expand-Archive dlibs/WTime/lib-Ubuntu-20.04.zip -DestinationPath dlibs
- name: Unarchive downloaded Ubuntu 22.04 libraries
if: matrix.os == 'ubuntu-22.04'
shell: pwsh
run: |
Expand-Archive dlibs/HSS_LowLevel/ubuntu22.04.zip -DestinationPath dlibs
Expand-Archive dlibs/ErrorCalc/ubuntu22.04.zip -DestinationPath dlibs
Expand-Archive dlibs/HSS_Multithread/lib-Ubuntu-22.04.zip -DestinationPath dlibs
Expand-Archive dlibs/HSS_Math/lib-Ubuntu-22.04.zip -DestinationPath dlibs
Expand-Archive dlibs/HSS_Geography/lib-Ubuntu-22.04.zip -DestinationPath dlibs
Expand-Archive dlibs/WTime/lib-Ubuntu-22.04.zip -DestinationPath dlibs
- name: Set up JDK 8 (Win)
if: matrix.os == 'windows-2019'
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
server-id: github
cache: 'maven'
- name: Set up JDK 11 (Ubuntu)
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
server-id: github
cache: 'maven'
- name: Setup the Maven configuration file
uses: whelk-io/maven-settings-xml-action@v21
with:
servers: '[{ "id": "github", "username": "spydmobile", "password": "${{ secrets.WISE_PAT }}" }, { "id": "github_hss", "username": "tredpath", "password": "${{ secrets.WISE_PAT }}" }]'
# Retrieve the cache, uses cache@v3
- name: Cache boost
uses: actions/cache@v3
id: cache-boost
with:
# Set the default path as the path to cache
path: '${{ runner.workspace }}/boost_*.tar.gz'
# Use the version as the key to only cache the correct version
key: boost-${{ env.BOOST_VERSION }}
- name: Install boost (Ubuntu)
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
uses: egor-tensin/build-boost@v1
id: install-boost
with:
version: ${{ env.BOOST_VERSION }}
toolset: ${{ matrix.build_tool }}
libraries: system chrono atomic iostreams program_options filesystem date_time
- name: Build zlib (Win)
if: matrix.os == 'windows-2019'
id: install-zlib-windows
shell: pwsh
run: |
Invoke-WebRequest "https://heartlandsoftwaresolutions.sharepoint.com/:u:/g/HSS_Releases/EUYThUR24ZZHq6GaiJ7fPFsBeilVSYM_agJV1Y8FTlJS0g?e=e3Nrmn&download=1" -OutFile zlib.zip
Expand-Archive zlib.zip -DestinationPath zlib
mv zlib/zlib-1.2.13/* zlib
cd zlib
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=install ../
cmake --build . --config Release
cmake --install .
$zlibpath = Resolve-Path -path install
echo "zlib_install_dir=$zlibpath" >> $env:GITHUB_OUTPUT
- name: Install boost (Win)
if: matrix.os == 'windows-2019'
id: install-boost-windows
shell: pwsh
run: |
$BOOST_VER="${{ env.BOOST_VERSION }}".Replace(".", "_")
Invoke-WebRequest "https://boostorg.jfrog.io/artifactory/main/release/${{ env.BOOST_VERSION }}/source/boost_${BOOST_VER}.tar.gz" -OutFile boost.tar.gz
tar -xzf boost.tar.gz
Move-Item .\boost_$BOOST_VER -Destination .\boost
cd .\boost
.\bootstrap.bat
.\b2.exe --build-dir=builddir --layout=system address-model=64 --stagedir=stage\\x64\\Release variant=release link=shared runtime-link=shared warnings=off -d0 --with-system --with-chrono --with-atomic --with-iostreams --with-program_options --with-filesystem --with-date_time -sZLIB_INCLUDE="${{ steps.install-zlib-windows.outputs.zlib_install_dir }}\include" -sZLIB_LIBPATH="${{ steps.install-zlib-windows.outputs.zlib_install_dir }}\lib"
echo "librarydir=$(Resolve-Path -path stage\x64\Release\lib)" >> $env:GITHUB_OUTPUT
echo "root=$(Resolve-Path -path .)" >> $env:GITHUB_OUTPUT
- name: Setup Ubuntu
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
run: |
sudo apt update
sudo apt install -y libgtest-dev libgdal-dev
- name: Download GDAL (Win)
if: matrix.os == 'windows-2019'
shell: pwsh
run: |
If(!(Test-Path ${{ steps.install-boost-windows.outputs.librarydir }}/boost_chrono.dll)){Copy-Item ${{ steps.install-boost-windows.outputs.librarydir }}/boost_chrono* ${{ steps.install-boost-windows.outputs.librarydir }}/boost_chrono.dll}
Invoke-WebRequest "https://heartlandsoftwaresolutions.sharepoint.com/:u:/g/HSS_Releases/EXnrOV_5audDuUmQjHymeDYBC_nMbcSQcOjP5Wi4IcPvkA?e=d8HeAq&download=1" -OutFile gdal.7z
& 7z.exe x gdal.7z -ogdal -y
- name: Download protobuf
shell: pwsh
run: |
Invoke-WebRequest "https://heartlandsoftwaresolutions.sharepoint.com/:u:/g/HSS_Releases/EUZ4knsEFP5FjNHHWR5dHc0BofAFyEPdLKRvzAgaTuDi1w?e=XW0Muc&download=1" -OutFile protobuf.zip
Expand-Archive protobuf.zip -DestinationPath protobuf
mv protobuf/protobuf-3.${{ env.PROTO_VERSION }}/* protobuf
- name: Build protobuf (Win)
if: matrix.os == 'windows-2019'
shell: pwsh
run: |
cd protobuf
cd cmake
mkdir build
cd build
$zlibpath = Resolve-Path -path ../../../zlib/build/install
cmake -Dprotobuf_WITH_ZLIB=ON -DZLIB_ROOT="$zlibpath" -Dprotobuf_BUILD_SHARED_LIBS=ON ../
cmake --build . --config Release --target libprotobuf
cmake --build . --config Release --target protoc
Copy-Item $zlibpath/bin/* Release
Copy-Item $zlibpath/lib/* Release
Copy-Item Release/*.lib ../../../dlibs
Copy-Item Release/*.dll ../../../dlibs
- name: Build protobuf (Ubuntu)
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
shell: pwsh
run: |
cd protobuf
cd cmake
mkdir build
cd build
cmake ../ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_POSITION_INDEPENDENT_CODE=ON
cmake --build . --target libprotobuf
cmake --build . --target protoc
cp libprotobuf.a ../../../dlibs
- name: Build Proto definition files (Ubuntu)
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
shell: pwsh
run: |
cd WISE_FBP_Module
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto accAlpha.proto
(Get-Content -path proto/accAlpha.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/accAlpha.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto ccwfgmFuel.proto
(Get-Content -path proto/ccwfgmFuel.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/ccwfgmFuel.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cfb.proto
(Get-Content -path proto/cfb.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/cfb.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto dbh.proto
(Get-Content -path proto/dbh.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/dbh.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto flame.proto
(Get-Content -path proto/flame.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/flame.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto fmc.proto
(Get-Content -path proto/fmc.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/fmc.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto fuelNames.proto
(Get-Content -path proto/fuelNames.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/fuelNames.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto isf.proto
(Get-Content -path proto/isf.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/isf.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto lb.proto
(Get-Content -path proto/lb.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/lb.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto rsi.proto
(Get-Content -path proto/rsi.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/rsi.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto sfc.proto
(Get-Content -path proto/sfc.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/sfc.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto spreadParms.proto
(Get-Content -path proto/spreadParms.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/spreadParms.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto tfc.proto
(Get-Content -path proto/tfc.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/tfc.pb.h
Move-Item proto/*.pb.cc -Destination cpp -force
Move-Item proto/*.pb.h -Destination include -force
cd ../WISE_Grid_Module
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=GRIDCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cwfgmFilter.proto
(Get-Content -path proto/cwfgmFilter.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"GridCOM.h`"" | Set-Content -Path proto/cwfgmFilter.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=GRIDCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cwfgmFuelMap.proto
(Get-Content -path proto/cwfgmFuelMap.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"GridCOM.h`"" | Set-Content -Path proto/cwfgmFuelMap.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=GRIDCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cwfgmGrid.proto
(Get-Content -path proto/cwfgmGrid.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"GridCOM.h`"" | Set-Content -Path proto/cwfgmGrid.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=GRIDCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto wcsData.proto
(Get-Content -path proto/wcsData.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"GridCOM.h`"" | Set-Content -Path proto/wcsData.pb.h
Move-Item proto/*.pb.cc -Destination cpp -force
Move-Item proto/*.pb.h -Destination include -force
cd ../WISE_Weather_Module
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=WEATHERCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cwfgmWeatherStation.proto
(Get-Content -path proto/cwfgmWeatherStation.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"WeatherCOM.h`"" | Set-Content -Path proto/cwfgmWeatherStation.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=WEATHERCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cwfgmWeatherStream.proto
(Get-Content -path proto/cwfgmWeatherStream.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"WeatherCOM.h`"" | Set-Content -Path proto/cwfgmWeatherStream.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=WEATHERCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto dailyConditions.proto
(Get-Content -path proto/dailyConditions.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"WeatherCOM.h`"" | Set-Content -Path proto/dailyConditions.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=WEATHERCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto weatherGridFilter.proto
(Get-Content -path proto/weatherGridFilter.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"WeatherCOM.h`"" | Set-Content -Path proto/weatherGridFilter.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=WEATHERCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto weatherStream.proto
(Get-Content -path proto/weatherStream.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"WeatherCOM.h`"" | Set-Content -Path proto/weatherStream.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=WEATHERCOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto windGrid.proto
(Get-Content -path proto/windGrid.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"WeatherCOM.h`"" | Set-Content -Path proto/windGrid.pb.h
Move-Item proto/*.pb.cc -Destination cpp -force
Move-Item proto/*.pb.h -Destination include -force
cd ../WISE_Scenario_Growth_Module
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FIRECOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cwfgmFire.proto
(Get-Content -path proto/cwfgmFire.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FireEngine.h`"" | Set-Content -Path proto/cwfgmFire.pb.h
../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FIRECOM_API:proto --java_out java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cwfgmScenario.proto
(Get-Content -path proto/cwfgmScenario.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FireEngine.h`"" | Set-Content -Path proto/cwfgmScenario.pb.h
Move-Item proto/*.pb.cc -Destination cpp -force
Move-Item proto/*.pb.h -Destination include -force
cd ../WISE_Application/WISE_Project
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto assetCollection.proto
(Get-Content -path proto/assetCollection.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/assetCollection.pb.h
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto cwfgmProject.proto
(Get-Content -path proto/cwfgmProject.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/cwfgmProject.pb.h
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto fuelCollection.proto
(Get-Content -path proto/fuelCollection.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/fuelCollection.pb.h
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto gridCollection.proto
(Get-Content -path proto/gridCollection.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/gridCollection.pb.h
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto projectGridFilter.proto
(Get-Content -path proto/projectGridFilter.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/projectGridFilter.pb.h
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto projectIgnition.proto
(Get-Content -path proto/projectIgnition.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/projectIgnition.pb.h
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto projectScenario.proto
(Get-Content -path proto/projectScenario.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/projectScenario.pb.h
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto projectWindGrid.proto
(Get-Content -path proto/projectWindGrid.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/projectWindGrid.pb.h
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto staticPoints.proto
(Get-Content -path proto/staticPoints.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/staticPoints.pb.h
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto summary.proto
(Get-Content -path proto/summary.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/summary.pb.h
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto vectorCollection.proto
(Get-Content -path proto/vectorCollection.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/vectorCollection.pb.h
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto viewStorage.proto
(Get-Content -path proto/viewStorage.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/viewStorage.pb.h
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto weatherStation.proto
(Get-Content -path proto/weatherStation.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/weatherStation.pb.h
Move-Item proto/*.pb.cc -Destination cpp -force
Move-Item proto/*.pb.h -Destination include -force
- name: Build Proto definition files (Win)
if: matrix.os == 'windows-2019'
shell: pwsh
run: |
cd WISE_FBP_Module
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto accAlpha.proto
(Get-Content -path proto/accAlpha.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/accAlpha.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto ccwfgmFuel.proto
(Get-Content -path proto/ccwfgmFuel.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/ccwfgmFuel.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cfb.proto
(Get-Content -path proto/cfb.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/cfb.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto dbh.proto
(Get-Content -path proto/dbh.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/dbh.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto flame.proto
(Get-Content -path proto/flame.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/flame.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto fmc.proto
(Get-Content -path proto/fmc.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/fmc.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto fuelNames.proto
(Get-Content -path proto/fuelNames.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/fuelNames.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto isf.proto
(Get-Content -path proto/isf.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/isf.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto lb.proto
(Get-Content -path proto/lb.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/lb.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto rsi.proto
(Get-Content -path proto/rsi.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/rsi.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto sfc.proto
(Get-Content -path proto/sfc.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/sfc.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto spreadParms.proto
(Get-Content -path proto/spreadParms.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/spreadParms.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FUELCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto tfc.proto
(Get-Content -path proto/tfc.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FuelConfig.h`"" | Set-Content -Path proto/tfc.pb.h
Move-Item proto/*.pb.cc -Destination cpp -force
Move-Item proto/*.pb.h -Destination include -force
cd ../WISE_Grid_Module
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=GRIDCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cwfgmFilter.proto
(Get-Content -path proto/cwfgmFilter.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"GridCOM.h`"" | Set-Content -Path proto/cwfgmFilter.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=GRIDCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cwfgmFuelMap.proto
(Get-Content -path proto/cwfgmFuelMap.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"GridCOM.h`"" | Set-Content -Path proto/cwfgmFuelMap.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=GRIDCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cwfgmGrid.proto
(Get-Content -path proto/cwfgmGrid.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"GridCOM.h`"" | Set-Content -Path proto/cwfgmGrid.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=GRIDCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto wcsData.proto
(Get-Content -path proto/wcsData.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"GridCOM.h`"" | Set-Content -Path proto/wcsData.pb.h
Move-Item proto/*.pb.cc -Destination cpp -force
Move-Item proto/*.pb.h -Destination include -force
cd ../WISE_Weather_Module
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=WEATHERCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cwfgmWeatherStation.proto
(Get-Content -path proto/cwfgmWeatherStation.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"WeatherCOM.h`"" | Set-Content -Path proto/cwfgmWeatherStation.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=WEATHERCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cwfgmWeatherStream.proto
(Get-Content -path proto/cwfgmWeatherStream.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"WeatherCOM.h`"" | Set-Content -Path proto/cwfgmWeatherStream.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=WEATHERCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto dailyConditions.proto
(Get-Content -path proto/dailyConditions.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"WeatherCOM.h`"" | Set-Content -Path proto/dailyConditions.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=WEATHERCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto weatherGridFilter.proto
(Get-Content -path proto/weatherGridFilter.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"WeatherCOM.h`"" | Set-Content -Path proto/weatherGridFilter.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=WEATHERCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto weatherStream.proto
(Get-Content -path proto/weatherStream.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"WeatherCOM.h`"" | Set-Content -Path proto/weatherStream.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=WEATHERCOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto windGrid.proto
(Get-Content -path proto/windGrid.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"WeatherCOM.h`"" | Set-Content -Path proto/windGrid.pb.h
Move-Item proto/*.pb.cc -Destination cpp -force
Move-Item proto/*.pb.h -Destination include -force
cd ../WISE_Scenario_Growth_Module
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FIRECOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cwfgmFire.proto
(Get-Content -path proto/cwfgmFire.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FireEngine.h`"" | Set-Content -Path proto/cwfgmFire.pb.h
../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=FIRECOM_API:proto --java_out=java/src/main/java --proto_path ../protobuf/src --proto_path ../proto cwfgmScenario.proto
(Get-Content -path proto/cwfgmScenario.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"FireEngine.h`"" | Set-Content -Path proto/cwfgmScenario.pb.h
Move-Item proto/*.pb.cc -Destination cpp -force
Move-Item proto/*.pb.h -Destination include -force
cd ../WISE_Application/WISE_Project
../../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out=java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto assetCollection.proto
(Get-Content -path proto/assetCollection.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/assetCollection.pb.h
../../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out=java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto cwfgmProject.proto
(Get-Content -path proto/cwfgmProject.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/cwfgmProject.pb.h
../../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out=java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto fuelCollection.proto
(Get-Content -path proto/fuelCollection.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/fuelCollection.pb.h
../../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out=java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto gridCollection.proto
(Get-Content -path proto/gridCollection.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/gridCollection.pb.h
../../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out=java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto projectGridFilter.proto
(Get-Content -path proto/projectGridFilter.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/projectGridFilter.pb.h
../../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out=java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto projectIgnition.proto
(Get-Content -path proto/projectIgnition.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/projectIgnition.pb.h
../../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out=java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto projectScenario.proto
(Get-Content -path proto/projectScenario.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/projectScenario.pb.h
../../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out=java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto projectWindGrid.proto
(Get-Content -path proto/projectWindGrid.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/projectWindGrid.pb.h
../../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out=java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto staticPoints.proto
(Get-Content -path proto/staticPoints.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/staticPoints.pb.h
../../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out=java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto summary.proto
(Get-Content -path proto/summary.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/summary.pb.h
../../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out=java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto vectorCollection.proto
(Get-Content -path proto/vectorCollection.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/vectorCollection.pb.h
../../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out=java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto viewStorage.proto
(Get-Content -path proto/viewStorage.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/viewStorage.pb.h
../../protobuf/cmake/build/Release/protoc --experimental_allow_proto3_optional --cpp_out=dllexport_decl=CWFGMPROJECT_EXPORT:proto --java_out=java/src/main/java --proto_path ../../protobuf/src --proto_path ../../proto weatherStation.proto
(Get-Content -path proto/weatherStation.pb.h -Raw) -replace '#include <string>',"#include <string>`n#include `"cwfgmp_config.h`"" | Set-Content -Path proto/weatherStation.pb.h
Move-Item proto/*.pb.cc -Destination cpp -force
Move-Item proto/*.pb.h -Destination include -force
- name: Load values from versions
id: version-numbers
shell: pwsh
run: |
$versions = ConvertFrom-StringData (Get-Content versions/versions.properties -raw)
$PROM_VERSION=$($versions.wise)
$PROM_CMAKE_VERSION=$PROM_VERSION.split('-')[0]
echo "Updating to version $PROM_VERSION"
echo "prometheus_version=$PROM_VERSION" >> $env:GITHUB_OUTPUT
echo "prometheus_cmake_version=$PROM_CMAKE_VERSION" >> $env:GITHUB_OUTPUT
echo "hss_math_version=$($versions.hss_math)" >> $env:GITHUB_OUTPUT
echo "wtime_version=$($versions.wtime)" >> $env:GITHUB_OUTPUT
echo "hss_java_version=$($versions.hss_java)" >> $env:GITHUB_OUTPUT
- name: Configure KMLHelper (Ubuntu)
id: configure-kml-ubuntu
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
run: |
cd WISE_Processing_Lib/KMLHelper
mkdir build
cd build
mkdir ubuntu
cd ubuntu
cmake ../.. -DPROMETHEUS_VERSION="${{ steps.version-numbers.outputs.prometheus_cmake_version }}" -DXERCES_C_INCLUDE_DIR=/usr/include/gdal -DLOWLEVEL_INCLUDE_DIR="../../HSS_LowLevel/include/" -DTHIRD_PARTY_INCLUDE_DIR="../../HSS_LowLevel/third_party/" -DMULTITHREAD_INCLUDE_DIR="../../HSS_Multithread/include/" -DMATH_INCLUDE_DIR="../../HSS_Math/include/" -DWTIME_INCLUDE_DIR="../../WTime/include/" -DLOCAL_LIBRARY_DIR="../../dlibs/"
cmake --build .
cp *.so* ../../../../dlibs
- name: Configure KMLHelper (Win)
id: configure-kml-windows
if: matrix.os == 'windows-2019'
run: |
cd WISE_Processing_Lib/KMLHelper
mkdir build
cd build
mkdir windows
cd windows
cmake ../.. -DMSVC=1 -DPROMETHEUS_VERSION="${{ steps.version-numbers.outputs.prometheus_cmake_version }}" -DXERCES_C_INCLUDE_DIR="../../gdal/include" -DLOWLEVEL_INCLUDE_DIR="../../HSS_LowLevel/include/" -DTHIRD_PARTY_INCLUDE_DIR="../../HSS_LowLevel/third_party/" -DMULTITHREAD_INCLUDE_DIR="../../HSS_Multithread/include/" -DMATH_INCLUDE_DIR="../../HSS_Math/include/" -DWTIME_INCLUDE_DIR="../../WTime/include/" -DGDAL_LIBRARY_DIR="../../gdal/lib" -DLOCAL_LIBRARY_DIR="../../dlibs/"
cmake --build . --config ${{env.BUILD_TYPE}}
Copy-Item Release/*.lib ../../../../dlibs
Copy-Item Release/*.dll ../../../../dlibs
- name: Configure REDappWrapper (Ubuntu)
id: configure-ra-ubuntu
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
run: |
cd WISE_REDapp_Lib_Wrapper
mkdir build
cd build
mkdir ubuntu
cd ubuntu
cmake ../.. -DPROMETHEUS_VERSION="${{ steps.version-numbers.outputs.prometheus_cmake_version }}" -DBOOST_INCLUDE_DIR=${{ steps.install-boost.outputs.root }} -DLOWLEVEL_INCLUDE_DIR="../HSS_LowLevel/include/" -DTHIRD_PARTY_INCLUDE_DIR="../HSS_LowLevel/third_party/" -DGRID_INCLUDE_DIR="../WISE_Grid_Module/include/" -DLOCAL_LIBRARY_DIR="../dlibs/"
cmake --build .
cp *.so* ../../../dlibs
- name: Configure REDappWrapper (Win)
id: configure-ra-windows
if: matrix.os == 'windows-2019'
run: |
cd WISE_REDapp_Lib_Wrapper
mkdir build
cd build
mkdir windows
cd windows
cmake ../.. -DMSVC=1 -DPROMETHEUS_VERSION="${{ steps.version-numbers.outputs.prometheus_cmake_version }}" -DBOOST_INCLUDE_DIR=${{ steps.install-boost-windows.outputs.root }} -DLOWLEVEL_INCLUDE_DIR="../HSS_LowLevel/include/" -DTHIRD_PARTY_INCLUDE_DIR="../HSS_LowLevel/third_party/" -DGRID_INCLUDE_DIR="../WISE_Grid_Module/include/" -DLOCAL_LIBRARY_DIR="../dlibs/"
cmake --build . --config ${{env.BUILD_TYPE}}
Copy-Item Release/*.lib ../../../dlibs
Copy-Item Release/*.dll ../../../dlibs
- name: Configure FWI (Ubuntu)
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
run: |
cd WISE_FWI_Module
mkdir build
cd build
mkdir ubuntu
cd ubuntu
cmake ../.. -DPROMETHEUS_VERSION="${{ steps.version-numbers.outputs.prometheus_cmake_version }}" -DLOWLEVEL_INCLUDE_DIR="../HSS_LowLevel/include/" -DTHIRD_PARTY_INCLUDE_DIR="../HSS_LowLevel/third_party/" -DMULTITHREAD_INCLUDE_DIR="../HSS_Multithread/include/" -DMATH_INCLUDE_DIR="../HSS_Math/include/" -DWTIME_INCLUDE_DIR="../WTime/include/" -DBOOST_INCLUDE_DIR=${{ steps.install-boost.outputs.root }} -DERROR_CALC_INCLUDE_DIR="../ErrorCalc/include/" -DLOCAL_LIBRARY_DIR="../dlibs/"
cmake --build .
cp *.so* ../../../dlibs
- name: Configure FWI (Win)
if: matrix.os == 'windows-2019'
run: |
cd WISE_FWI_Module
mkdir build
cd build
mkdir windows
cd windows
cmake ../.. -DMSVC=1 -DPROMETHEUS_VERSION="${{ steps.version-numbers.outputs.prometheus_cmake_version }}" -DLOWLEVEL_INCLUDE_DIR="../HSS_LowLevel/include/" -DTHIRD_PARTY_INCLUDE_DIR="../HSS_LowLevel/third_party/" -DMULTITHREAD_INCLUDE_DIR="../HSS_Multithread/include/" -DMATH_INCLUDE_DIR="../HSS_Math/include/" -DWTIME_INCLUDE_DIR="../WTime/include/" -DBOOST_INCLUDE_DIR=${{ steps.install-boost-windows.outputs.root }} -DERROR_CALC_INCLUDE_DIR="../ErrorCalc/include/" -DLOCAL_LIBRARY_DIR="../dlibs/"
cmake --build . --config ${{env.BUILD_TYPE}}
Copy-Item Release/*.lib ../../../dlibs
Copy-Item Release/*.dll ../../../dlibs
- name: Configure FBP (Ubuntu)
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
run: |
cd WISE_FBP_Module
mkdir build
cd build
mkdir ubuntu
cd ubuntu
cmake ../.. -DPROMETHEUS_VERSION="${{ steps.version-numbers.outputs.prometheus_cmake_version }}" -DLOWLEVEL_INCLUDE_DIR="../HSS_LowLevel/include/" -DTHIRD_PARTY_INCLUDE_DIR="../HSS_LowLevel/third_party/" -DMULTITHREAD_INCLUDE_DIR="../HSS_Multithread/include/" -DMATH_INCLUDE_DIR="../HSS_Math/include/" -DWTIME_INCLUDE_DIR="../WTime/include/" -DBOOST_INCLUDE_DIR=${{ steps.install-boost.outputs.root }} -DERROR_CALC_INCLUDE_DIR="../ErrorCalc/include/" -DLOCAL_LIBRARY_DIR="../dlibs/" -DFWI_INCLUDE_DIR="../WISE_FWI_Module/include" -DFIREENGINE_INCLUDE_DIR="../WISE_Scenario_Growth_Module/include" -DGRID_INCLUDE_DIR="../WISE_Grid_Module/include/" -DGDAL_INCLUDE_DIR=/usr/include/gdal -DGSL_INCLUDE_DIR="../GSL/include" -DPROTOBUF_INCLUDE_DIR="../protobuf/src" -DPROTOBUF_LIBRARY_DIR="../protobuf/cmake/build" -DBOOST_LIBRARY_DIR=${{ steps.install-boost.outputs.librarydir }}/..
cmake --build .
cp *.so* ../../../dlibs
- name: Configure FBP (Win)
if: matrix.os == 'windows-2019'
run: |
cd WISE_FBP_Module
mkdir build
cd build
mkdir windows
cd windows
cmake ../.. -DMSVC=1 -DPROMETHEUS_VERSION="${{ steps.version-numbers.outputs.prometheus_cmake_version }}" -DLOWLEVEL_INCLUDE_DIR="../HSS_LowLevel/include/" -DTHIRD_PARTY_INCLUDE_DIR="../HSS_LowLevel/third_party/" -DMULTITHREAD_INCLUDE_DIR="../HSS_Multithread/include/" -DMATH_INCLUDE_DIR="../HSS_Math/include/" -DWTIME_INCLUDE_DIR="../WTime/include/" -DBOOST_INCLUDE_DIR=${{ steps.install-boost-windows.outputs.root }} -DERROR_CALC_INCLUDE_DIR="../ErrorCalc/include/" -DLOCAL_LIBRARY_DIR="../dlibs/" -DFWI_INCLUDE_DIR="../WISE_FWI_Module/include" -DFIREENGINE_INCLUDE_DIR="../WISE_Scenario_Growth_Module/include" -DGRID_INCLUDE_DIR="../WISE_Grid_Module/include/" -DGDAL_INCLUDE_DIR="../gdal/include" -DGSL_INCLUDE_DIR="../GSL/include" -DPROTOBUF_INCLUDE_DIR="../protobuf/src" -DPROTOBUF_LIBRARY_DIR="../protobuf/cmake/build/Release" -DBOOST_LIBRARY_DIR=${{ steps.install-boost-windows.outputs.librarydir }}/..
cmake --build . --config ${{env.BUILD_TYPE}}
Copy-Item Release/*.lib ../../../dlibs
Copy-Item Release/*.dll ../../../dlibs
- name: Configure Grid (Ubuntu)
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
run: |
cd WISE_Grid_Module
mkdir build
cd build
mkdir ubuntu
cd ubuntu
cmake ../.. -DPROMETHEUS_VERSION="${{ steps.version-numbers.outputs.prometheus_cmake_version }}" -DLOWLEVEL_INCLUDE_DIR="../HSS_LowLevel/include/" -DTHIRD_PARTY_INCLUDE_DIR="../HSS_LowLevel/third_party/" -DMULTITHREAD_INCLUDE_DIR="../HSS_Multithread/include/" -DMATH_INCLUDE_DIR="../HSS_Math/include/" -DGEOGRAPHY_INCLUDE_DIR="../HSS_Geography/include/" -DWTIME_INCLUDE_DIR="../WTime/include/" -DBOOST_INCLUDE_DIR=${{ steps.install-boost.outputs.root }} -DERROR_CALC_INCLUDE_DIR="../ErrorCalc/include/" -DLOCAL_LIBRARY_DIR="../dlibs/" -DFWI_INCLUDE_DIR="../WISE_FWI_Module/include" -DFIREENGINE_INCLUDE_DIR="../WISE_Scenario_Growth_Module/include" -DFUEL_INCLUDE_DIR="../WISE_FBP_Module/include/" -DGDAL_INCLUDE_DIR=/usr/include/gdal -DGSL_INCLUDE_DIR="../GSL/include" -DPROTOBUF_INCLUDE_DIR="../protobuf/src" -DPROTOBUF_LIBRARY_DIR="../protobuf/cmake/build" -DBOOST_LIBRARY_DIR=${{ steps.install-boost.outputs.librarydir }}/..
cmake --build .
cp *.so* ../../../dlibs
- name: Configure Grid (Win)
if: matrix.os == 'windows-2019'
run: |
cd WISE_Grid_Module
mkdir build
cd build
mkdir windows
cd windows
cmake ../.. -DMSVC=1 -DPROMETHEUS_VERSION="${{ steps.version-numbers.outputs.prometheus_cmake_version }}" -DLOWLEVEL_INCLUDE_DIR="../HSS_LowLevel/include/" -DTHIRD_PARTY_INCLUDE_DIR="../HSS_LowLevel/third_party/" -DMULTITHREAD_INCLUDE_DIR="../HSS_Multithread/include/" -DMATH_INCLUDE_DIR="../HSS_Math/include/" -DGEOGRAPHY_INCLUDE_DIR="../HSS_Geography/include/" -DWTIME_INCLUDE_DIR="../WTime/include/" -DBOOST_INCLUDE_DIR=${{ steps.install-boost-windows.outputs.root }} -DERROR_CALC_INCLUDE_DIR="../ErrorCalc/include/" -DLOCAL_LIBRARY_DIR="../dlibs/" -DFWI_INCLUDE_DIR="../WISE_FWI_Module/include" -DFIREENGINE_INCLUDE_DIR="../WISE_Scenario_Growth_Module/include" -DFUEL_INCLUDE_DIR="../WISE_FBP_Module/include/" -DGDAL_INCLUDE_DIR="../gdal/include" -DGSL_INCLUDE_DIR="../GSL/include" -DPROTOBUF_INCLUDE_DIR="../protobuf/src" -DPROTOBUF_LIBRARY_DIR="../protobuf/cmake/build/Release" -DBOOST_LIBRARY_DIR=${{ steps.install-boost-windows.outputs.librarydir }}/.. -DGDAL_LIBRARY_DIR="../gdal/lib"
cmake --build . --config ${{env.BUILD_TYPE}}
Copy-Item Release/*.lib ../../../dlibs
Copy-Item Release/*.dll ../../../dlibs
- name: Configure Weather (Ubuntu)
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
run: |
cd WISE_Weather_Module
mkdir build
cd build
mkdir ubuntu
cd ubuntu
cmake ../.. -DPROMETHEUS_VERSION="${{ steps.version-numbers.outputs.prometheus_cmake_version }}" -DLOWLEVEL_INCLUDE_DIR="../HSS_LowLevel/include/" -DTHIRD_PARTY_INCLUDE_DIR="../HSS_LowLevel/third_party/" -DMULTITHREAD_INCLUDE_DIR="../HSS_Multithread/include/" -DMATH_INCLUDE_DIR="../HSS_Math/include/" -DGEOGRAPHY_INCLUDE_DIR="../HSS_Geography/include/" -DWTIME_INCLUDE_DIR="../WTime/include/" -DBOOST_INCLUDE_DIR=${{ steps.install-boost.outputs.root }} -DERROR_CALC_INCLUDE_DIR="../ErrorCalc/include/" -DLOCAL_LIBRARY_DIR="../dlibs/" -DFWI_INCLUDE_DIR="../WISE_FWI_Module/include" -DFIREENGINE_INCLUDE_DIR="../WISE_Scenario_Growth_Module/include" -DFUEL_INCLUDE_DIR="../WISE_FBP_Module/include/" -DGDAL_INCLUDE_DIR=/usr/include/gdal -DGSL_INCLUDE_DIR="../GSL/include" -DPROTOBUF_INCLUDE_DIR="../protobuf/src" -DPROTOBUF_LIBRARY_DIR="../protobuf/cmake/build" -DBOOST_LIBRARY_DIR=${{ steps.install-boost.outputs.librarydir }}/.. -DGRID_INCLUDE_DIR="../WISE_Grid_Module/include" -DREDAPP_INCLUDE_DIR="../WISE_REDapp_Lib_Wrapper/include"
cmake --build .
cp *.so* ../../../dlibs
- name: Configure Weather (Win)
if: matrix.os == 'windows-2019'
run: |
cd WISE_Weather_Module
mkdir build
cd build
mkdir windows
cd windows
cmake ../.. -DMSVC=1 -DPROMETHEUS_VERSION="${{ steps.version-numbers.outputs.prometheus_cmake_version }}" -DLOWLEVEL_INCLUDE_DIR="../HSS_LowLevel/include/" -DTHIRD_PARTY_INCLUDE_DIR="../HSS_LowLevel/third_party/" -DMULTITHREAD_INCLUDE_DIR="../HSS_Multithread/include/" -DMATH_INCLUDE_DIR="../HSS_Math/include/" -DGEOGRAPHY_INCLUDE_DIR="../HSS_Geography/include/" -DWTIME_INCLUDE_DIR="../WTime/include/" -DBOOST_INCLUDE_DIR=${{ steps.install-boost-windows.outputs.root }} -DERROR_CALC_INCLUDE_DIR="../ErrorCalc/include/" -DLOCAL_LIBRARY_DIR="../dlibs/" -DFWI_INCLUDE_DIR="../WISE_FWI_Module/include" -DFIREENGINE_INCLUDE_DIR="../WISE_Scenario_Growth_Module/include" -DFUEL_INCLUDE_DIR="../WISE_FBP_Module/include/" -DGDAL_INCLUDE_DIR="../gdal/include" -DGSL_INCLUDE_DIR="../GSL/include" -DPROTOBUF_INCLUDE_DIR="../protobuf/src" -DPROTOBUF_LIBRARY_DIR="../protobuf/cmake/build/Release" -DBOOST_LIBRARY_DIR=${{ steps.install-boost-windows.outputs.librarydir }}/.. -DGDAL_LIBRARY_DIR="../gdal/lib" -DGRID_INCLUDE_DIR="../WISE_Grid_Module/include" -DREDAPP_INCLUDE_DIR="../WISE_REDapp_Lib_Wrapper/include"
cmake --build . --config ${{env.BUILD_TYPE}}
Copy-Item Release/*.lib ../../../dlibs
Copy-Item Release/*.dll ../../../dlibs
- name: Configure Fire Engine (Ubuntu)
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
run: |
cd WISE_Scenario_Growth_Module
mkdir build
cd build
mkdir ubuntu
cd ubuntu
cmake ../.. -DPROMETHEUS_VERSION="${{ steps.version-numbers.outputs.prometheus_cmake_version }}" -DLOWLEVEL_INCLUDE_DIR="../HSS_LowLevel/include/" -DTHIRD_PARTY_INCLUDE_DIR="../HSS_LowLevel/third_party/" -DMULTITHREAD_INCLUDE_DIR="../HSS_Multithread/include/" -DMATH_INCLUDE_DIR="../HSS_Math/include/" -DGEOGRAPHY_INCLUDE_DIR="../HSS_Geography/include/" -DWTIME_INCLUDE_DIR="../WTime/include/" -DBOOST_INCLUDE_DIR=${{ steps.install-boost.outputs.root }} -DERROR_CALC_INCLUDE_DIR="../ErrorCalc/include/" -DLOCAL_LIBRARY_DIR="../dlibs/" -DFWI_INCLUDE_DIR="../WISE_FWI_Module/include" -DWEATHER_INCLUDE_DIR="../WISE_Weather_Module/include" -DFUEL_INCLUDE_DIR="../WISE_FBP_Module/include/" -DGDAL_INCLUDE_DIR=/usr/include/gdal -DGSL_INCLUDE_DIR="../GSL/include" -DPROTOBUF_INCLUDE_DIR="../protobuf/src" -DPROTOBUF_LIBRARY_DIR="../protobuf/cmake/build" -DBOOST_LIBRARY_DIR=${{ steps.install-boost.outputs.librarydir }}/.. -DGRID_INCLUDE_DIR="../WISE_Grid_Module/include" -DREDAPP_INCLUDE_DIR="../WISE_REDapp_Lib_Wrapper/include"
cmake --build .
cp *.so* ../../../dlibs
- name: Configure Fire Engine (Win)
if: matrix.os == 'windows-2019'
run: |
cd WISE_Scenario_Growth_Module
mkdir build
cd build
mkdir windows
cd windows
cmake ../.. -DMSVC=1 -DPROMETHEUS_VERSION="${{ steps.version-numbers.outputs.prometheus_cmake_version }}" -DLOWLEVEL_INCLUDE_DIR="../HSS_LowLevel/include/" -DTHIRD_PARTY_INCLUDE_DIR="../HSS_LowLevel/third_party/" -DMULTITHREAD_INCLUDE_DIR="../HSS_Multithread/include/" -DMATH_INCLUDE_DIR="../HSS_Math/include/" -DGEOGRAPHY_INCLUDE_DIR="../HSS_Geography/include/" -DWTIME_INCLUDE_DIR="../WTime/include/" -DBOOST_INCLUDE_DIR=${{ steps.install-boost-windows.outputs.root }} -DERROR_CALC_INCLUDE_DIR="../ErrorCalc/include/" -DLOCAL_LIBRARY_DIR="../dlibs/" -DFWI_INCLUDE_DIR="../WISE_FWI_Module/include" -DWEATHER_INCLUDE_DIR="../WISE_Weather_Module/include" -DFUEL_INCLUDE_DIR="../WISE_FBP_Module/include/" -DGDAL_INCLUDE_DIR="../gdal/include" -DGSL_INCLUDE_DIR="../GSL/include" -DPROTOBUF_INCLUDE_DIR="../protobuf/src" -DPROTOBUF_LIBRARY_DIR="../protobuf/cmake/build/Release" -DBOOST_LIBRARY_DIR=${{ steps.install-boost-windows.outputs.librarydir }}/.. -DGDAL_LIBRARY_DIR="../gdal/lib" -DGRID_INCLUDE_DIR="../WISE_Grid_Module/include" -DREDAPP_INCLUDE_DIR="../WISE_REDapp_Lib_Wrapper/include"
cmake --build . --config ${{env.BUILD_TYPE}}
Copy-Item Release/*.lib ../../../dlibs
Copy-Item Release/*.dll ../../../dlibs
- name: Build Comms Proto definition files (Ubuntu)
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
shell: pwsh
run: |
cd WISE_Communications_Module/WISE_Defaults
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=cpp --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path proto wise_config.proto
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=cpp --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path proto wise_defaults.proto
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path proto manager_settings.proto
cd ../WISE_Client_Comms
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path proto file_upload.proto
cd ../WISE_Server_Comms
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=cpp --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path proto file_upload.proto
../../protobuf/cmake/build/protoc --experimental_allow_proto3_optional --cpp_out=cpp --java_out java/src/main/java --proto_path ../../protobuf/src --proto_path proto validation_report.proto