@@ -78,12 +78,14 @@ jobs:
78
78
cd -
79
79
mkdir -p packaging-tools
80
80
cp -af /tmp/binutils/bin/* packaging-tools
81
+
81
82
- name : fetch demumble
82
83
83
84
with :
84
85
repository : nico/demumble
85
86
path : demumble-src
86
87
ref : v${{ env.demumbleVer }}
88
+
87
89
- name : build demumble
88
90
run : |
89
91
cd demumble-src
@@ -93,11 +95,13 @@ jobs:
93
95
cd -
94
96
mkdir -p packaging-tools-
95
97
cp -af demumble-src/demumble packaging-tools
98
+
96
99
- name : archive tools
97
100
run : |
98
101
cd packaging-tools
99
102
ls
100
103
tar -czhf ../packaging-tools.tgz .
104
+
101
105
- name : upload artifacts
102
106
uses : actions/upload-artifact@v2
103
107
with :
@@ -114,14 +118,17 @@ jobs:
114
118
with :
115
119
path : sdk-src
116
120
ref : ${{ github.event.inputs.commitIdToPackage }}
121
+
117
122
- name : install prerequisites
118
123
run : sdk-src/build_scripts/ios/install_prereqs.sh
124
+
119
125
- name : build sdk
120
126
run : |
121
127
sdk-src/build_scripts/ios/build.sh -b firebase-cpp-sdk-ios-build -s sdk-src
122
128
sdk-src/build_scripts/ios/package.sh firebase-cpp-sdk-ios-build firebase-cpp-sdk-ios-package
123
129
cd firebase-cpp-sdk-ios-package
124
130
tar -czhf ../firebase-cpp-sdk-ios-package.tgz .
131
+
125
132
- name : Print built libraries
126
133
shell : bash
127
134
run : |
@@ -131,10 +138,12 @@ jobs:
131
138
find firebase-cpp-sdk-*-build -name "*.a"
132
139
find firebase-cpp-sdk-*-build -name "*.so"
133
140
find firebase-cpp-sdk-*-build -name "*.framework"
141
+
134
142
- name : Print package contents
135
143
shell : bash
136
144
run : |
137
145
find firebase-cpp-sdk-*-package -type f
146
+
138
147
- name : upload artifacts
139
148
uses : actions/upload-artifact@v2
140
149
with :
@@ -155,14 +164,17 @@ jobs:
155
164
with :
156
165
path : sdk-src
157
166
ref : ${{ github.event.inputs.commitIdToPackage }}
167
+
158
168
- name : install prerequisites
159
169
run : sdk-src/build_scripts/android/install_prereqs.sh
170
+
160
171
- name : build sdk
161
172
run : |
162
173
sdk-src/build_scripts/android/build.sh firebase-cpp-sdk-android-${{ matrix.stl }}-build sdk-src ${{ matrix.stl }}
163
174
sdk-src/build_scripts/android/package.sh firebase-cpp-sdk-android-${{ matrix.stl }}-build firebase-cpp-sdk-android-${{ matrix.stl }}-package ${{ matrix.stl }}
164
175
cd firebase-cpp-sdk-android-${{ matrix.stl }}-package
165
176
tar -czhf ../firebase-cpp-sdk-android-${{ matrix.stl}}-package.tgz .
177
+
166
178
- name : Print built libraries
167
179
shell : bash
168
180
run : |
@@ -172,10 +184,12 @@ jobs:
172
184
find firebase-cpp-sdk-*-build -name "*.a"
173
185
find firebase-cpp-sdk-*-build -name "*.so"
174
186
find firebase-cpp-sdk-*-build -name "*.framework"
187
+
175
188
- name : Print package contents
176
189
shell : bash
177
190
run : |
178
191
find firebase-cpp-sdk-*-package -type f
192
+
179
193
- name : upload artifacts
180
194
uses : actions/upload-artifact@v2
181
195
with :
@@ -294,6 +308,7 @@ jobs:
294
308
cd firebase-cpp-sdk-${{ env.SDK_NAME }}-build
295
309
find .. -type f -print > src_file_list.txt
296
310
tar -czhf ../firebase-cpp-sdk-${{ env.SDK_NAME }}-build.tgz .
311
+
297
312
- name : Print built libraries
298
313
shell : bash
299
314
run : |
@@ -303,6 +318,7 @@ jobs:
303
318
find firebase-cpp-sdk-*-build -name "*.a"
304
319
find firebase-cpp-sdk-*-build -name "*.so"
305
320
find firebase-cpp-sdk-*-build -name "*.framework"
321
+
306
322
- name : upload artifacts
307
323
uses : actions/upload-artifact@v2
308
324
with :
@@ -363,21 +379,25 @@ jobs:
363
379
with :
364
380
path : sdk-src
365
381
ref : ${{ github.event.inputs.commitIdToPackage }}
382
+
366
383
- name : download artifact
367
384
uses : actions/download-artifact@v2
368
385
with :
369
386
# download-artifact doesn't support wildcards, but by default
370
387
# will download all artifacts. Sadly this is what we must do.
371
388
path : artifacts
389
+
372
390
- name : Setup python
373
391
uses : actions/setup-python@v2
374
392
with :
375
393
python-version : 3.7
394
+
376
395
- name : Install prerequisites
377
396
run : |
378
397
cd sdk-src
379
398
python scripts/gha/install_prereqs_desktop.py
380
399
cd ..
400
+
381
401
- name : postprocess and package built SDK
382
402
run : |
383
403
mkdir -p bin
@@ -401,10 +421,12 @@ jobs:
401
421
fi
402
422
cd firebase-cpp-sdk-${{ matrix.sdk_platform }}${{ matrix.suffix }}-package
403
423
tar -czhf ../firebase-cpp-sdk-${{ matrix.sdk_platform }}${{ matrix.suffix }}-package.tgz .
424
+
404
425
- name : Print package contents
405
426
shell : bash
406
427
run : |
407
428
find firebase-cpp-sdk-*-package -type f
429
+
408
430
- name : upload SDK zip
409
431
uses : actions/upload-artifact@v2
410
432
with :
@@ -443,9 +465,11 @@ jobs:
443
465
set -e
444
466
445
467
- name : compute SDK hash
468
+ shell : bash
446
469
run : |
447
470
${{ env.hashCommand }} --tag firebase_cpp_sdk.zip > firebase_cpp_sdk_hash.txt
448
471
echo "::warning ::$(cat firebase_cpp_sdk_hash.txt)"
472
+
449
473
- name : upload hash
450
474
uses : actions/upload-artifact@v2
451
475
with :
@@ -478,6 +502,7 @@ jobs:
478
502
path : artifacts
479
503
480
504
- name : merge SDK packages
505
+ shell : bash
481
506
run : |
482
507
set -ex
483
508
mkdir -p firebase-cpp-sdk-final/firebase_cpp_sdk
@@ -496,9 +521,11 @@ jobs:
496
521
zip -9 -r -y ../firebase_cpp_sdk.zip firebase_cpp_sdk
497
522
cd ..
498
523
- name : compute SDK hash
524
+ shell : bash
499
525
run : |
500
526
${{ env.hashCommand }} --tag firebase_cpp_sdk.zip > firebase_cpp_sdk_hash.txt
501
527
echo "::warning ::$(cat firebase_cpp_sdk_hash.txt)"
528
+
502
529
- name : Print final package contents
503
530
shell : bash
504
531
run : |
@@ -510,6 +537,7 @@ jobs:
510
537
with :
511
538
name : firebase_cpp_sdk_hash.txt
512
539
path : firebase_cpp_sdk_hash.txt
540
+
513
541
- name : upload SDK zip
514
542
uses : actions/upload-artifact@v2
515
543
with :
@@ -566,24 +594,28 @@ jobs:
566
594
with :
567
595
name : firebase_cpp_sdk.zip
568
596
path : .
597
+
569
598
- name : download hash
570
599
uses : actions/download-artifact@v2
571
600
with :
572
601
name : firebase_cpp_sdk_hash.txt
573
602
path : .
603
+
574
604
- name : List binary SDK files.
575
605
run : |
576
606
# Verify zipfile hash first.
577
607
${{ env.hashCommand }} -c --quiet firebase_cpp_sdk_hash.txt
578
608
unzip -q firebase_cpp_sdk.zip
579
609
find . -print
610
+
580
611
- name : Verify SDK package files.
581
612
run : |
582
613
if [[ -r firebase_cpp_sdk/file_hashes.txt ]]; then
583
614
${{ env.hashCommand }} -c --quiet firebase_cpp_sdk/file_hashes.txt
584
615
else
585
616
echo "::warning ::SDK package does not contain file_hashes.txt, cannot verify files in package."
586
617
fi
618
+
587
619
- name : fetch integration test source
588
620
589
621
with :
0 commit comments