@@ -63,61 +63,22 @@ jobs:
63
63
64
64
# ? Original branding of the code is official
65
65
# ? It seems in PGO build, branding is not important in NOT deploying binary
66
- build -win-x86_64-profgen :
66
+ Part1 -win-x86_64-build-with- profgen-zstd :
67
67
uses : ./.github/workflows/windows-build.yml
68
68
with :
69
69
profgen : true
70
70
aarch64 : false
71
71
zstd : true
72
72
73
- win-x86_64-gen-profdata-and-jarlog :
74
- needs : build-win-x86_64-profgen
75
- runs-on : windows-2022
76
-
77
- steps :
78
- - uses : actions/download-artifact@v3
79
- name : Download artifact 📥
80
- with :
81
- name : floorp-windows-x86_64-build-with-profgen-zstd
82
- path : C:\artifact
83
-
84
- - name : Unpack artifact
85
- run : |
86
- cd C:\artifact
87
- zstd -d floorp-*.tar.zst
88
- 7z x floorp-*.tar
89
-
90
- - uses : actions/checkout@v3
91
- name : Clone 🧬
92
- with :
93
- submodules : ' recursive'
94
-
95
- - name : Setup 🪛
96
- run : |
97
- (New-Object System.Net.WebClient).DownloadFile("https://ftp.mozilla.org/pub/mozilla/libraries/win32/MozillaBuildSetup-Latest.exe","C:\MozillaBuildSetup-Latest.exe")
98
- C:\MozillaBuildSetup-Latest.exe /S | out-null
99
-
100
- - name : Generate 🔄
101
- run : |
102
- $Env:USE_MINTTY = "0"
103
-
104
- $workspace_dir = [regex]::replace($env:GITHUB_WORKSPACE, "^([A-Z]):", { "/" + $args.value.Substring(0, 1).toLower() }) -replace "\\","/"
105
- echo "cd $workspace_dir" '' >> mozilla-build-run.sh
106
- echo 'export PATH=/c/mozilla-build/msys2/usr/bin:$PATH' '' >> mozilla-build-run.sh
107
- echo './mach --no-interactive bootstrap --application-choice browser' '' >> mozilla-build-run.sh
108
- echo 'LLVM_PROFDATA=/c/Users/runneradmin/.mozbuild/clang/bin/llvm-profdata.exe JARLOG_FILE=en-US.log ./mach python build/pgo/profileserver.py --binary /c/artifact/floorp/floorp.exe' '' >> mozilla-build-run.sh
109
- C:\mozilla-build\start-shell.bat $workspace_dir\mozilla-build-run.sh
110
-
111
- - name : Publish 🎁
112
- uses : actions/upload-artifact@v3
113
- with :
114
- name : floorp-windows-x86_64-profdata-and-jarlog
115
- path : |
116
- merged.profdata
117
- en-US.log
73
+ Part2-win-x86_64-gen-profdata-and-jarlog :
74
+ needs : Part1-win-x86_64-build-with-profgen-zstd
75
+ uses : ./.github/workflows/window-generate-profile-data-and-jarlog.yml
76
+ with :
77
+ browser-artifact-name : floorp-windows-x86_64-build-with-profgen-zstd
78
+ arch : x86_64
118
79
119
- build -win-x86_64-with-profdata-and-jarlog :
120
- needs : [win-x86_64-gen-profdata-and-jarlog,get-buildid]
80
+ Part3 -win-x86_64-build -with-profdata-and-jarlog :
81
+ needs : [Part2- win-x86_64-gen-profdata-and-jarlog ,get-buildid]
121
82
uses : ./.github/workflows/windows-build.yml
122
83
with :
123
84
aarch64 : false
127
88
out_artifact_name : please-use-this-floorp-windows-x86_64-package-build-with-profdata-and-jarlog
128
89
MOZ_BUILD_DATE : ${{needs.get-buildid.outputs.buildids}}
129
90
130
- win-x86_64-gen-update-xml :
131
- needs : [get-display-version, get-buildid, get-inside-version,build -win-x86_64-with-profdata-and-jarlog]
91
+ Part4- win-x86_64-gen-update-xml :
92
+ needs : [get-display-version, get-buildid, get-inside-version,Part3 -win-x86_64-build -with-profdata-and-jarlog]
132
93
runs-on : ubuntu-latest
133
94
steps :
134
95
- name : generate update XML file
@@ -155,8 +116,8 @@ jobs:
155
116
INSDVER : ${{needs.get-inside-version.outputs.inside-version}}
156
117
BUILDID : ${{needs.get-buildid.outputs.buildids}}
157
118
GHREPO : ${{github.repository}}
158
- MAR_NAME : ${{needs.build -win-x86_64-with-profdata-and-jarlog.outputs.mar_name}}
159
- MAR_SIZE : ${{needs.build -win-x86_64-with-profdata-and-jarlog.outputs.mar_size}}
119
+ MAR_NAME : ${{needs.Part3 -win-x86_64-build -with-profdata-and-jarlog.outputs.mar_name}}
120
+ MAR_SIZE : ${{needs.Part3 -win-x86_64-build -with-profdata-and-jarlog.outputs.mar_size}}
160
121
161
122
- name : Publish 🎁
162
123
uses : actions/upload-artifact@v3
@@ -166,7 +127,7 @@ jobs:
166
127
WINNT-x86_64.xml
167
128
168
129
# ----------------------------------------- LINUX -----------------------------------------#
169
- build-linux-x86_64-PGO :
130
+ Part1- build-linux-x86_64-PGO :
170
131
uses : ./.github/workflows/linux-build.yml
171
132
needs : [get-buildid]
172
133
with :
@@ -175,9 +136,9 @@ jobs:
175
136
mar : true
176
137
MOZ_BUILD_DATE : ${{needs.get-buildid.outputs.buildids}}
177
138
178
- linux-x86_64-gen-update-xml :
139
+ Part2- linux-x86_64-gen-update-xml :
179
140
runs-on : ' ubuntu-latest'
180
- needs : [build-linux-x86_64-PGO,get-display-version,get-inside-version,get-buildid]
141
+ needs : [Part1- build-linux-x86_64-PGO, get-display-version, get-inside-version, get-buildid]
181
142
steps :
182
143
- name : generate update XML file
183
144
run : |
@@ -203,8 +164,8 @@ jobs:
203
164
INSDVER : ${{needs.get-inside-version.outputs.inside-version}}
204
165
BUILDID : ${{needs.get-buildid.outputs.buildids}}
205
166
GHREPO : ${{github.repository}}
206
- MAR_NAME : ${{needs.build-linux-x86_64-PGO.outputs.mar_name}}
207
- MAR_SIZE : ${{needs.build-linux-x86_64-PGO.outputs.mar_size}}
167
+ MAR_NAME : ${{needs.Part1- build-linux-x86_64-PGO.outputs.mar_name}}
168
+ MAR_SIZE : ${{needs.Part1- build-linux-x86_64-PGO.outputs.mar_size}}
208
169
- name : Publish 🎁
209
170
uses : actions/upload-artifact@v3
210
171
with :
@@ -214,15 +175,15 @@ jobs:
214
175
215
176
# ----------------------------------------- macOS -----------------------------------------#
216
177
217
- build-mac-universal -profgen :
178
+ Part1-macOS-Universal-build-with -profgen :
218
179
uses : ./.github/workflows/macOS-Universal.yml
219
180
with :
220
181
profgen : true
221
182
secrets :
222
183
MACOS_CROSS_TOOLS_KEY : ${{ secrets.MACOS_CROSS_TOOLS_KEY }}
223
184
224
- mac-universal -gen-profdata-and-jarlog :
225
- needs : [build-mac-universal -profgen]
185
+ Part2-macOS-Universal -gen-profdata-and-jarlog :
186
+ needs : [Part1-macOS-Universal-build-with -profgen]
226
187
runs-on : ${{ matrix.runs-on }}
227
188
strategy :
228
189
matrix :
@@ -305,19 +266,19 @@ jobs:
305
266
merged.profdata
306
267
en-US.log
307
268
308
- build-mac-universal- with-profdata :
269
+ Part3-macOS-Universal-build- with-profdata-and-jarlog :
309
270
uses : ./.github/workflows/macOS-Universal.yml
310
- needs : [get-buildid, mac-universal -gen-profdata-and-jarlog]
271
+ needs : [get-buildid, Part2-macOS-Universal -gen-profdata-and-jarlog]
311
272
with :
312
273
build-with-profdata-and-jarlog : true
313
274
beta : true
314
275
MOZ_BUILD_DATE : ${{needs.get-buildid.outputs.buildids}}
315
276
secrets :
316
277
MACOS_CROSS_TOOLS_KEY : ${{ secrets.MACOS_CROSS_TOOLS_KEY }}
317
278
318
- create-mac-universal-artifact :
279
+ Part4-macOS-Universal-package-and-sign :
319
280
uses : ./.github/workflows/macOS-integration.yml
320
- needs : [get-buildid, get-display-version, get-inside-version, build-mac-universal- with-profdata]
281
+ needs : [get-buildid, get-display-version, get-inside-version, Part3-macOS-Universal-build- with-profdata-and-jarlog ]
321
282
with :
322
283
beta : true
323
284
mar : true
@@ -336,7 +297,7 @@ jobs:
336
297
337
298
# #################################################################### Deployments #######################################################################################################
338
299
Deployments :
339
- needs : [get-display-version, get-buildid, get-inside-version, linux-x86_64-gen-update-xml, win-x86_64-gen-update-xml, create-mac-universal-artifact ]
300
+ needs : [get-display-version, get-buildid, get-inside-version, Part2- linux-x86_64-gen-update-xml, Part4- win-x86_64-gen-update-xml, Part4-macOS-Universal-package-and-sign ]
340
301
runs-on : ubuntu-latest
341
302
steps :
342
303
0 commit comments