Skip to content

Commit e2ec431

Browse files
[FB] Workflow | Remove buildjet
1 parent 396da4a commit e2ec431

6 files changed

+29
-125
lines changed

.github/workflows/daily-build-with-update.yml

+26-65
Original file line numberDiff line numberDiff line change
@@ -63,61 +63,22 @@ jobs:
6363

6464
#? Original branding of the code is official
6565
#? 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:
6767
uses: ./.github/workflows/windows-build.yml
6868
with:
6969
profgen: true
7070
aarch64: false
7171
zstd: true
7272

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
11879

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]
12182
uses: ./.github/workflows/windows-build.yml
12283
with:
12384
aarch64: false
@@ -127,8 +88,8 @@ jobs:
12788
out_artifact_name: please-use-this-floorp-windows-x86_64-package-build-with-profdata-and-jarlog
12889
MOZ_BUILD_DATE: ${{needs.get-buildid.outputs.buildids}}
12990

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]
13293
runs-on: ubuntu-latest
13394
steps:
13495
- name: generate update XML file
@@ -155,8 +116,8 @@ jobs:
155116
INSDVER: ${{needs.get-inside-version.outputs.inside-version}}
156117
BUILDID: ${{needs.get-buildid.outputs.buildids}}
157118
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}}
160121

161122
- name: Publish 🎁
162123
uses: actions/upload-artifact@v3
@@ -166,7 +127,7 @@ jobs:
166127
WINNT-x86_64.xml
167128
168129
#----------------------------------------- LINUX -----------------------------------------#
169-
build-linux-x86_64-PGO:
130+
Part1-build-linux-x86_64-PGO:
170131
uses: ./.github/workflows/linux-build.yml
171132
needs: [get-buildid]
172133
with:
@@ -175,9 +136,9 @@ jobs:
175136
mar: true
176137
MOZ_BUILD_DATE: ${{needs.get-buildid.outputs.buildids}}
177138

178-
linux-x86_64-gen-update-xml:
139+
Part2-linux-x86_64-gen-update-xml:
179140
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]
181142
steps:
182143
- name: generate update XML file
183144
run: |
@@ -203,8 +164,8 @@ jobs:
203164
INSDVER: ${{needs.get-inside-version.outputs.inside-version}}
204165
BUILDID: ${{needs.get-buildid.outputs.buildids}}
205166
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}}
208169
- name: Publish 🎁
209170
uses: actions/upload-artifact@v3
210171
with:
@@ -214,15 +175,15 @@ jobs:
214175
215176
#----------------------------------------- macOS -----------------------------------------#
216177

217-
build-mac-universal-profgen:
178+
Part1-macOS-Universal-build-with-profgen:
218179
uses: ./.github/workflows/macOS-Universal.yml
219180
with:
220181
profgen: true
221182
secrets:
222183
MACOS_CROSS_TOOLS_KEY: ${{ secrets.MACOS_CROSS_TOOLS_KEY }}
223184

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]
226187
runs-on: ${{ matrix.runs-on }}
227188
strategy:
228189
matrix:
@@ -305,19 +266,19 @@ jobs:
305266
merged.profdata
306267
en-US.log
307268
308-
build-mac-universal-with-profdata:
269+
Part3-macOS-Universal-build-with-profdata-and-jarlog:
309270
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]
311272
with:
312273
build-with-profdata-and-jarlog: true
313274
beta: true
314275
MOZ_BUILD_DATE: ${{needs.get-buildid.outputs.buildids}}
315276
secrets:
316277
MACOS_CROSS_TOOLS_KEY: ${{ secrets.MACOS_CROSS_TOOLS_KEY }}
317278

318-
create-mac-universal-artifact:
279+
Part4-macOS-Universal-package-and-sign:
319280
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]
321282
with:
322283
beta: true
323284
mar: true
@@ -336,7 +297,7 @@ jobs:
336297

337298
##################################################################### Deployments #######################################################################################################
338299
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]
340301
runs-on: ubuntu-latest
341302
steps:
342303

.github/workflows/deployments.yml

-12
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ permissions:
1717
on:
1818
workflow_dispatch:
1919
inputs:
20-
buildjet:
21-
description: 'Buildjet'
22-
type: boolean
23-
required: true
24-
default: true
2520
release-note-url:
2621
description: 'Release Note URL'
2722
type: string
@@ -82,7 +77,6 @@ jobs:
8277
profgen: true
8378
aarch64: false
8479
zstd: true
85-
buildjet: ${{ inputs.buildjet }}
8680

8781
Part2-win-x86_64-gen-profdata-and-jarlog:
8882
needs: Part1-win-x86_64-build-with-profgen-zstd
@@ -97,7 +91,6 @@ jobs:
9791
with:
9892
aarch64: false
9993
beta: false
100-
buildjet: ${{ inputs.buildjet }}
10194
profdata_jarlog_artifact_name: "floorp-windows-x86_64-profdata-and-jarlog"
10295
out_artifact_name: please-use-this-floorp-windows-x86_64-package-build-with-profdata-and-jarlog
10396
MOZ_BUILD_DATE: ${{needs.get-buildid.outputs.buildids}}
@@ -113,7 +106,6 @@ jobs:
113106
aarch64: false
114107
build32bit: true
115108
beta: false
116-
buildjet: ${{ inputs.buildjet }}
117109
out_artifact_name: please-use-this-floorp-windows-x86-package-build-with-profdata-and-jarlog
118110
MOZ_BUILD_DATE: ${{needs.get-buildid.outputs.buildids}}
119111
release-note-url: ${{ inputs.release-note-url }}
@@ -128,7 +120,6 @@ jobs:
128120
aarch64: false
129121
beta: false
130122
mar: true
131-
buildjet: ${{ inputs.buildjet }}
132123
MOZ_BUILD_DATE: ${{needs.get-buildid.outputs.buildids}}
133124
release-note-url: ${{ inputs.release-note-url }}
134125
release-note-url-ja: ${{ inputs.release-note-url-ja }}
@@ -141,7 +132,6 @@ jobs:
141132
aarch64: true
142133
beta: false
143134
mar: true
144-
buildjet: ${{ inputs.buildjet }}
145135
MOZ_BUILD_DATE: ${{needs.get-buildid.outputs.buildids}}
146136
release-note-url: ${{ inputs.release-note-url }}
147137
release-note-url-ja: ${{ inputs.release-note-url-ja }}
@@ -154,7 +144,6 @@ jobs:
154144
uses: ./.github/workflows/macOS-Universal.yml
155145
with:
156146
profgen: true
157-
buildjet: ${{ inputs.buildjet }}
158147
secrets:
159148
MACOS_CROSS_TOOLS_KEY: ${{ secrets.MACOS_CROSS_TOOLS_KEY }}
160149

@@ -246,7 +235,6 @@ jobs:
246235
uses: ./.github/workflows/macOS-Universal.yml
247236
needs: [get-buildid, Part2-macOS-Universal-gen-profdata-and-jarlog]
248237
with:
249-
buildjet: ${{ inputs.buildjet }}
250238
build-with-profdata-and-jarlog: true
251239
beta: false
252240
MOZ_BUILD_DATE: ${{needs.get-buildid.outputs.buildids}}

.github/workflows/linux-build.yml

+1-14
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# © 2023 Floorp Projects & Contributors
77

88
#! SELF HOST DOES NOT SUPPORTED
9-
#TODO! buildjet config not implemented
109
#TODO: separate Publish to other workflow
1110

1211
#? On linux x86_64 build, pgo build is enabled on default.
@@ -33,11 +32,6 @@ on:
3332
mar:
3433
type: boolean
3534
default: false
36-
#? If you want to ALWAYS build with buildjet, do default to true
37-
buildjet:
38-
type: boolean
39-
default: false
40-
#? buildjet cache also is, but idk how to use on sccache
4135
MOZ_BUILD_DATE:
4236
type: string
4337
default: ""
@@ -59,7 +53,7 @@ on:
5953

6054
jobs:
6155
linux-build:
62-
runs-on: ${{fromJson('["ubuntu-latest","buildjet-16vcpu-ubuntu-2204"]')[inputs.buildjet]}}
56+
runs-on: ubuntu-latest
6357
outputs:
6458
mar_name: ${{steps.gen-mar.outputs.MAR_NAME}}
6559
mar_size: ${{steps.gen-mar.outputs.MAR_SIZE}}
@@ -75,13 +69,6 @@ jobs:
7569
sudo perl -p -i -e 's%(deb(?:-src|)\s+)https?://(?!archive\.canonical\.com|security\.ubuntu\.com)[^\s]+%$1http://archive.ubuntu.com/ubuntu/%' /etc/apt/sources.list
7670
sudo apt update
7771
78-
#! ON UBUNTU RUNNER
79-
- name: Setup Disk & Swap Space 💿
80-
if: ${{ !inputs.buildjet }}
81-
run: |
82-
chmod +x .github/workflows/src/disk_swap_for_github_runner.sh
83-
.github/workflows/src/disk_swap_for_github_runner.sh
84-
8572
- name: Prepare cross compiler (aarch64)⚒
8673
if: ${{ inputs.aarch64 }}
8774
run: |

.github/workflows/macOS-Universal.yml

+1-19
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# © 2023 Floorp Projects & Contributors
77

88
#! SELF HOST DOES NOT SUPPORTED
9-
#TODO! buildjet config not implemented
109
#TODO: separate Publish to other workflow
1110

1211
name: "(A) ⚒ macOS Universal Build"
@@ -31,11 +30,6 @@ on:
3130
MOZ_BUILD_DATE:
3231
type: string
3332
default: ""
34-
#? If you want to ALWAYS build with buildjet, do default to true
35-
buildjet:
36-
type: boolean
37-
default: false
38-
#? buildjet cache also is, but idk how to use on sccache
3933
release-note-url:
4034
type: string
4135
required: false
@@ -65,18 +59,13 @@ on:
6559
MOZ_BUILD_DATE:
6660
type: string
6761
default: ""
68-
#? If you want to ALWAYS build with buildjet, do default to true
69-
buildjet:
70-
type: boolean
71-
default: false
72-
#? buildjet cache also is, but idk how to use on sccache
7362

7463
jobs:
7564
mac-build:
7665
runs-on: ${{ matrix.runs-on }}
7766
strategy:
7867
matrix:
79-
runs-on: ${{ fromJson('[["ubuntu-latest"], ["buildjet-16vcpu-ubuntu-2204"]]')[inputs.buildjet] }}
68+
runs-on: ["ubuntu-latest"]
8069
arch: [x86_64, aarch64]
8170
steps:
8271
- name: Use Node.js
@@ -113,13 +102,6 @@ jobs:
113102
repository: Floorp-Projects/l10n-central
114103
path: l10n-central
115104

116-
#! ON UBUNTU RUNNER
117-
- name: Setup Disk & Swap Space 💿
118-
if: matrix.runs-on != 'buildjet-16vcpu-ubuntu-2204'
119-
run: |
120-
chmod +x .github/workflows/src/disk_swap_for_github_runner.sh
121-
.github/workflows/src/disk_swap_for_github_runner.sh
122-
123105
- name: Configure sccache
124106
uses: actions/github-script@v6
125107
with:

.github/workflows/macOS-integration.yml

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# © 2023 Floorp Projects & Contributors
77

88
#! SELF HOST DOES NOT SUPPORTED
9-
#TODO! buildjet config not implemented
109
#TODO: separate Publish to other workflow
1110

1211
on:

.github/workflows/windows-build.yml

+1-14
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# © 2023 Floorp Projects & Contributors
77

88
#! SELF HOST DOES NOT SUPPORTED
9-
#TODO! buildjet config not implemented
109
#TODO: separate Publish to other workflow
1110

1211
#! aarch64 PGO can maybe not comportable with pgo
@@ -51,11 +50,6 @@ on:
5150
MOZ_BUILD_DATE:
5251
type: string
5352
default: ""
54-
#? If you want to ALWAYS build with buildjet, do default to true
55-
buildjet:
56-
type: boolean
57-
default: false
58-
#? buildjet cache also is, but idk how to use on sccache
5953
release-note-url:
6054
type: string
6155
required: false
@@ -72,7 +66,7 @@ on:
7266

7367
jobs:
7468
win-build:
75-
runs-on: ${{fromJson('["ubuntu-latest","buildjet-16vcpu-ubuntu-2204"]')[inputs.buildjet]}}
69+
runs-on: ubuntu-latest
7670
outputs:
7771
mar_name: ${{steps.gen-mar.outputs.MAR_NAME}}
7872
mar_size: ${{steps.gen-mar.outputs.MAR_SIZE}}
@@ -124,13 +118,6 @@ jobs:
124118
with:
125119
submodules: 'recursive'
126120

127-
#! ON UBUNTU RUNNER
128-
- name: Setup Disk & Swap Space 💿
129-
if: ${{!inputs.buildjet}}
130-
run: |
131-
chmod +x .github/workflows/src/disk_swap_for_github_runner.sh
132-
.github/workflows/src/disk_swap_for_github_runner.sh
133-
134121
- name: Configure sccache
135122
uses: actions/github-script@v6
136123
with:

0 commit comments

Comments
 (0)