27
27
ios_version :
28
28
description : ' iOS device version'
29
29
default : ' 13.3'
30
+ desktop_ssl_variants :
31
+ description : ' Which SSL variants to build desktop SDK with'
32
+ default : ' openssl,boringssl'
33
+ required : true
30
34
31
35
jobs :
32
36
# To feed input into the job matrix, we first need to convert to a JSON
36
40
outputs :
37
41
matrix_os : ${{ steps.set-matrix-os.outputs.matrix_os }}
38
42
matrix_platform : ${{ steps.set-matrix-os.outputs.matrix_platform }}
43
+ matrix_ssl : ${{ steps.set-matrix-os.outputs.matrix_ssl }}
39
44
steps :
40
45
- id : set-matrix-os
41
46
# e.g. 'ubuntu-latest,macos-latest' -> '["ubuntu-latest","macos-latest"]'
44
49
echo "::set-output name=matrix_os::${OS_JSON}"
45
50
PLATFORM_JSON=[\"$(echo ${{ github.event.inputs.platforms }} | sed 's/,/","/g')\"]
46
51
echo "::set-output name=matrix_platform::${PLATFORM_JSON}"
52
+ SSL_JSON=[\"$(echo ${{ github.event.inputs.desktop_ssl_variants }} | sed 's/,/","/g')\"]
53
+ echo "::set-output name=matrix_ssl::${SSL_JSON}"
47
54
tests :
48
55
name : ${{ matrix.os }}-${{ matrix.target_platform }}
49
56
needs : prepare_matrix
@@ -53,11 +60,16 @@ jobs:
53
60
matrix :
54
61
os : ${{ fromJson(needs.prepare_matrix.outputs.matrix_os) }}
55
62
target_platform : ${{ fromJson(needs.prepare_matrix.outputs.matrix_platform) }}
63
+ ssl_variant : ${{ fromJson(needs.prepare_matrix.outputs.matrix_ssl) }}
56
64
exclude :
57
65
- os : ubuntu-latest
58
66
target_platform : iOS
59
67
- os : windows-latest
60
68
target_platform : iOS
69
+ - target_platform : iOS
70
+ ssl_variant : boringssl
71
+ - target_platform : Android
72
+ ssl_variant : boringssl
61
73
62
74
steps :
63
75
- uses : actions/checkout@v2
@@ -118,7 +130,11 @@ jobs:
118
130
119
131
- name : Build integration tests
120
132
run : |
121
- python scripts/gha/build_testapps.py --t ${{ github.event.inputs.apis }} --p ${{ matrix.target_platform }} --output_directory ${{ github.workspace }} --use_vcpkg --noadd_timestamp
133
+ ssl_option=
134
+ if [[ "${{ matrix.ssl_variant }}" == "boringssl" ]]; then
135
+ ssl_option=--cmake_flag=-DFIREBASE_USE_BORINGSSL=ON
136
+ fi
137
+ python scripts/gha/build_testapps.py --t ${{ github.event.inputs.apis }} --p ${{ matrix.target_platform }} --output_directory ${{ github.workspace }} --use_vcpkg --noadd_timestamp ${ssl_option}
122
138
123
139
- name : Run desktop integration tests
124
140
if : matrix.target_platform == 'Desktop' && !cancelled()
0 commit comments