61
61
outputs :
62
62
platform : ${{ steps.set_outputs.outputs.platform }}
63
63
release_label : ${{ steps.set_outputs.outputs.release_label }}
64
+ unity_version : ${{ steps.set_outputs.outputs.unity_version }}
65
+ apis : ${{ steps.set_outputs.outputs.apis }}
66
+ release_version : ${{ steps.set_outputs.outputs.release_version }}
67
+ should_trigger_package : ${{ steps.set_outputs.outputs.should_trigger_package }}
68
+ skipIntegrationTests : ${{ steps.set_outputs.outputs.skipIntegrationTests }}
69
+ firebase_cpp_sdk_version : ${{ steps.set_outputs.outputs.firebase_cpp_sdk_version }}
70
+ unity_branch : ${{ steps.set_outputs.outputs.unity_branch }}
71
+ additional_cmake_flags : ${{ steps.set_outputs.outputs.additional_cmake_flags }}
64
72
steps :
65
73
- uses : actions/checkout@v2
66
74
with :
79
87
platform=$( python scripts/gha/print_matrix_configuration.py -c -w config -k platform -o "${{ github.event.inputs.platforms }}" )
80
88
echo "::set-output name=platform::${platform}"
81
89
echo "::set-output name=release_label::${{ github.event.inputs.release_version }}-${{ github.event.inputs.rc_index }}"
90
+ echo "::set-output name=release_version::${{ github.event.inputs.release_version }}"
91
+ echo "::set-output name=apis::${{ github.event.inputs.apis }}"
92
+ echo "::set-output name=unity_version::${{ github.event.inputs.unity_version }}"
93
+ echo "::set-output name=should_trigger_package::${{ github.event.inputs.should_trigger_package }}"
94
+ echo "::set-output name=skipIntegrationTests::${{ github.event.inputs.skipIntegrationTests }}"
95
+ echo "::set-output name=unity_branch::${{ github.event.inputs.unity_branch }}"
96
+ echo "::set-output name=additional_cmake_flags::${{ github.event.inputs.unity_branch }}"
82
97
else
83
98
echo "::set-output name=platform::'Android,iOS,Windows,macOS,Linux'"
84
99
echo "::set-output name=release_label::nightly-$(date "+%Y%m%d-%H%M%S")"
100
+ echo "::set-output name=release_version::'NoVersion'"
101
+ echo "::set-output name=apis::'analytics,auth,crashlytics,database,dynamic_links,firestore,functions,installations,messaging,remote_config,storage'"
102
+ echo "::set-output name=unity_version::'2019'"
103
+ echo "::set-output name=should_trigger_package::true"
104
+ echo "::set-output name=skipIntegrationTests::'0'"
105
+ echo "::set-output name=firebase_cpp_sdk_version::''"
106
+ echo "::set-output name=unity_branch::''"
107
+ echo "::set-output name=additional_cmake_flags::''"
85
108
fi
86
109
87
110
- name : Print output
@@ -92,104 +115,104 @@ jobs:
92
115
update_versions :
93
116
uses : ./.github/workflows/update_versions.yml
94
117
needs : check_and_prepare
95
- if : (github.event.inputs .release_version!='NoVersion')
118
+ if : (needs.check_and_prepare.outputs .release_version!='NoVersion')
96
119
with :
97
120
triggered_by_callable : true
98
- base_branch : ${{ github.event.inputs .unity_branch }}
99
- package_version_number : ${{ github.event.inputs .release_version }}
100
- cpp_release_version : ${{ github.event.inputs .firebase_cpp_sdk_version }}
121
+ base_branch : ${{ needs.check_and_prepare.outputs .unity_branch }}
122
+ package_version_number : ${{ needs.check_and_prepare.outputs .release_version }}
123
+ cpp_release_version : ${{ needs.check_and_prepare.outputs .firebase_cpp_sdk_version }}
101
124
secrets : inherit
102
125
103
126
decide_build_branch :
104
- needs : update_versions
127
+ needs : [check_and_prepare, update_versions]
105
128
runs-on : ubuntu-latest
106
129
if : always()
107
130
outputs :
108
131
build_branch : ${{ steps.decide_branch.outputs.branch }}
109
132
steps :
110
133
- id : decide_branch
111
134
run : |
112
- if [[ "${{ github.event.inputs .release_version }}" == "'NoVersion'" ]]; then
135
+ if [[ "${{ needs.check_and_prepare.outputs .release_version }}" == "'NoVersion'" ]]; then
113
136
# Triggered by callable
114
- echo "::set-output name=branch::${{ github.event.inputs .unity_branch }}"
137
+ echo "::set-output name=branch::${{ needs.check_and_prepare.outputs .unity_branch }}"
115
138
else
116
139
echo "::set-output name=branch::${{ needs.update_versions.outputs.new_branch }}"
117
140
fi
118
141
119
142
build_android :
120
- name : build-android-unity${{ github.event.inputs .unity_version }}-CPP${{ github.event.inputs .firebase_cpp_sdk_version }}
143
+ name : build-android-unity${{ needs.check_and_prepare.outputs .unity_version }}-CPP${{ needs.check_and_prepare.outputs .firebase_cpp_sdk_version }}
121
144
uses : ./.github/workflows/build_android.yml
122
145
needs : [check_and_prepare, decide_build_branch]
123
146
if : always() && contains(needs.check_and_prepare.outputs.platform, 'Android')
124
147
with :
125
- unity_version : ${{ github.event.inputs .unity_version }}
126
- firebase_cpp_sdk_version : ${{ github.event.inputs .firebase_cpp_sdk_version }}
148
+ unity_version : ${{ needs.check_and_prepare.outputs .unity_version }}
149
+ firebase_cpp_sdk_version : ${{ needs.check_and_prepare.outputs .firebase_cpp_sdk_version }}
127
150
unity_branch : ${{ needs.decide_build_branch.outputs.build_branch }}
128
- apis : ${{ github.event.inputs .apis }}
151
+ apis : ${{ needs.check_and_prepare.outputs .apis }}
129
152
unity_platform_name : Android
130
- additional_cmake_flags : ${{ github.event.inputs .additional_cmake_flags }}
153
+ additional_cmake_flags : ${{ needs.check_and_prepare.outputs .additional_cmake_flags }}
131
154
132
155
build_ios :
133
- name : build-ios-unity${{ github.event.inputs .unity_version }}-CPP${{ github.event.inputs .firebase_cpp_sdk_version }}
156
+ name : build-ios-unity${{ needs.check_and_prepare.outputs .unity_version }}-CPP${{ needs.check_and_prepare.outputs .firebase_cpp_sdk_version }}
134
157
uses : ./.github/workflows/build_ios.yml
135
158
needs : [check_and_prepare, decide_build_branch]
136
159
if : always() && contains(needs.check_and_prepare.outputs.platform, 'iOS')
137
160
with :
138
- unity_version : ${{ github.event.inputs .unity_version }}
139
- firebase_cpp_sdk_version : ${{ github.event.inputs .firebase_cpp_sdk_version }}
161
+ unity_version : ${{needs.check_and_prepare.outputs .unity_version }}
162
+ firebase_cpp_sdk_version : ${{ needs.check_and_prepare.outputs .firebase_cpp_sdk_version }}
140
163
unity_branch : ${{ needs.decide_build_branch.outputs.build_branch }}
141
- apis : ${{ github.event.inputs .apis }}
164
+ apis : ${{ needs.check_and_prepare.outputs .apis }}
142
165
unity_platform_name : iOS
143
- additional_cmake_flags : ${{ github.event.inputs .additional_cmake_flags }}
166
+ additional_cmake_flags : ${{ needs.check_and_prepare.outputs .additional_cmake_flags }}
144
167
145
168
build_linux :
146
- name : build-linux-unity${{ github.event.inputs .unity_version }}-CPP${{ github.event.inputs .firebase_cpp_sdk_version }}
169
+ name : build-linux-unity${{ needs.check_and_prepare.outputs .unity_version }}-CPP${{ needs.check_and_prepare.outputs .firebase_cpp_sdk_version }}
147
170
uses : ./.github/workflows/build_linux.yml
148
171
needs : [check_and_prepare, decide_build_branch]
149
172
if : always() && contains(needs.check_and_prepare.outputs.platform, 'Linux')
150
173
with :
151
- unity_version : ${{ github.event.inputs .unity_version }}
152
- firebase_cpp_sdk_version : ${{ github.event.inputs .firebase_cpp_sdk_version }}
174
+ unity_version : ${{ needs.check_and_prepare.outputs .unity_version }}
175
+ firebase_cpp_sdk_version : ${{ needs.check_and_prepare.outputs .firebase_cpp_sdk_version }}
153
176
unity_branch : ${{ needs.decide_build_branch.outputs.build_branch }}
154
- apis : ${{ github.event.inputs .apis }}
177
+ apis : ${{ needs.check_and_prepare.outputs .apis }}
155
178
unity_platform_name : Linux
156
- additional_cmake_flags : ${{ github.event.inputs .additional_cmake_flags }}
179
+ additional_cmake_flags : ${{ needs.check_and_prepare.outputs .additional_cmake_flags }}
157
180
158
181
build_macos :
159
- name : build-macos-unity${{ github.event.inputs .unity_version }}-CPP${{ github.event.inputs .firebase_cpp_sdk_version }}
182
+ name : build-macos-unity${{ needs.check_and_prepare.outputs .unity_version }}-CPP${{ needs.check_and_prepare.outputs .firebase_cpp_sdk_version }}
160
183
uses : ./.github/workflows/build_macos.yml
161
184
needs : [check_and_prepare, decide_build_branch]
162
185
if : always() && contains(needs.check_and_prepare.outputs.platform, 'macOS')
163
186
with :
164
- unity_version : ${{ github.event.inputs .unity_version }}
165
- firebase_cpp_sdk_version : ${{ github.event.inputs .firebase_cpp_sdk_version }}
166
- unity_branch : ${{ github.event.inputs .unity_branch }}
167
- apis : ${{ github.event.inputs .apis }}
187
+ unity_version : ${{ needs.check_and_prepare.outputs .unity_version }}
188
+ firebase_cpp_sdk_version : ${{ needs.check_and_prepare.outputs .firebase_cpp_sdk_version }}
189
+ unity_branch : ${{ needs.check_and_prepare.outputs .unity_branch }}
190
+ apis : ${{ needs.check_and_prepare.outputs .apis }}
168
191
unity_platform_name : macOS,iOS
169
- additional_cmake_flags : ${{ github.event.inputs .additional_cmake_flags }}
192
+ additional_cmake_flags : ${{ needs.check_and_prepare.outputs .additional_cmake_flags }}
170
193
171
194
build_windows :
172
- name : build-windows-unity${{ github.event.inputs .unity_version }}-CPP${{ github.event.inputs .firebase_cpp_sdk_version }}
195
+ name : build-windows-unity${{ needs.check_and_prepare.outputs .unity_version }}-CPP${{ needs.check_and_prepare.outputs .firebase_cpp_sdk_version }}
173
196
uses : ./.github/workflows/build_windows.yml
174
197
needs : [check_and_prepare, decide_build_branch]
175
198
if : always() && contains(needs.check_and_prepare.outputs.platform, 'Windows')
176
199
with :
177
- unity_version : ${{ github.event.inputs .unity_version }}
178
- firebase_cpp_sdk_version : ${{ github.event.inputs .firebase_cpp_sdk_version }}
200
+ unity_version : ${{ needs.check_and_prepare.outputs .unity_version }}
201
+ firebase_cpp_sdk_version : ${{ needs.check_and_prepare.outputs .firebase_cpp_sdk_version }}
179
202
unity_branch : ${{ needs.decide_build_branch.outputs.build_branch }}
180
- apis : ${{ github.event.inputs .apis }}
203
+ apis : ${{ needs.check_and_prepare.outputs .apis }}
181
204
unity_platform_name : Windows
182
- additional_cmake_flags : ${{ github.event.inputs .additional_cmake_flags }}
205
+ additional_cmake_flags : ${{ needs.check_and_prepare.outputs .additional_cmake_flags }}
183
206
184
207
trigger_reusable_package :
185
208
name : package ${{ needs.check_and_prepare.outputs.release_label }}
186
209
needs : [build_android, build_ios, build_linux, build_macos, build_windows, decide_build_branch]
187
210
uses : ./.github/workflows/package.yml
188
- if : (github.event.inputs .should_trigger_package == 'true') && !cancelled() && !failure()
211
+ if : (needs.check_and_prepare.outputs .should_trigger_package == 'true') && !cancelled() && !failure()
189
212
with :
190
213
triggered_by_callable : true
191
214
release_label : ${{ needs.check_and_prepare.outputs.release_label }}
192
- skipIntegrationTests : ${{ github.event.inputs .skipIntegrationTests }}
215
+ skipIntegrationTests : ${{ needs.check_and_prepare.outputs .skipIntegrationTests }}
193
216
build_run_id : ${{ github.run_id }}
194
217
working_branch : ${{ needs.decide_build_branch.outputs.build_branch }}
195
218
secrets : inherit
0 commit comments