mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-21 12:20:43 +00:00
Update Linux and Windows build workflows to use architecture-specific runners and add dynamic port allocation in profileserver.py
This commit is contained in:
2
.github/workflows/linux-release-build.yml
vendored
2
.github/workflows/linux-release-build.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
||||
build-linux:
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ${{ inputs.release-branch == 'release' && 'warp-ubuntu-latest-x64-8x' || 'ubuntu-latest' }}
|
||||
runs-on: ${{ matrix.arch == 'x86_64' && 'warp-ubuntu-latest-x64-8x' || 'ubuntu-latest' }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
||||
2
.github/workflows/windows-release-build.yml
vendored
2
.github/workflows/windows-release-build.yml
vendored
@@ -22,7 +22,7 @@ on:
|
||||
jobs:
|
||||
windows-build:
|
||||
name: Build Windows - ${{ matrix.arch }}
|
||||
runs-on: ${{ (inputs.release-branch == 'release' && !(inputs.generate-gpo && matrix.arch == 'aarch64')) && 'warp-ubuntu-latest-x64-8x' || 'ubuntu-latest' }}
|
||||
runs-on: ${{ (inputs.release-branch == 'release' && !(inputs.generate-gpo && matrix.arch == 'aarch64')) && 'warp-ubuntu-latest-x64-6x' || 'ubuntu-latest' }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
19
src/build/pgo/profileserver-py.patch
Normal file
19
src/build/pgo/profileserver-py.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
diff --git a/build/pgo/profileserver.py b/build/pgo/profileserver.py
|
||||
index 31556cc9ae1a44a04e300083f7be4dc908cc3794..23ef1d8f5b30068ffdddc3c9cb6cd45e64d93071 100755
|
||||
--- a/build/pgo/profileserver.py
|
||||
+++ b/build/pgo/profileserver.py
|
||||
@@ -18,7 +18,13 @@ from mozprofile import FirefoxProfile, Preferences
|
||||
from mozprofile.permissions import ServerLocations
|
||||
from mozrunner import CLI, FirefoxRunner
|
||||
|
||||
-PORT = 8888
|
||||
+import socket
|
||||
+def find_free_port():
|
||||
+ with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
|
||||
+ s.bind(('', 0))
|
||||
+ return s.getsockname()[1]
|
||||
+
|
||||
+PORT = find_free_port()
|
||||
|
||||
PATH_MAPPINGS = {
|
||||
"/webkit/PerformanceTests": "third_party/webkit/PerformanceTests",
|
||||
Reference in New Issue
Block a user