Compare commits

...

3 Commits

Author SHA1 Message Date
Simon Sapin
3a8183975a [Do not merge] Run macOS tasks on the mac9 worker 2019-11-09 08:55:15 +01:00
Josh Matthews
f82107336a Set pkg-config path for macOS WPT tasks. 2019-11-07 16:02:28 -05:00
Josh Matthews
a63933e28c Force pkg-config to find installed homebrew packages. 2019-11-07 15:59:04 -05:00

View File

@@ -153,7 +153,9 @@ linux_build_env = {
"CC": "clang", "CC": "clang",
"CXX": "clang++", "CXX": "clang++",
} }
macos_build_env = {} macos_build_env = {
"PKG_CONFIG_PATH": "homebrew/lib/pkgconfig",
}
windows_build_env = { windows_build_env = {
"x86_64": { "x86_64": {
"GSTREAMER_1_0_ROOT_X86_64": "%HOMEDRIVE%%HOMEPATH%\\gst\\gstreamer\\1.0\\x86_64\\", "GSTREAMER_1_0_ROOT_X86_64": "%HOMEDRIVE%%HOMEPATH%\\gst\\gstreamer\\1.0\\x86_64\\",
@@ -606,7 +608,6 @@ def update_wpt():
.with_repo(shallow=False) .with_repo(shallow=False)
.with_curl_artifact_script(build_task, "target.tar.gz") .with_curl_artifact_script(build_task, "target.tar.gz")
.with_script(""" .with_script("""
export PKG_CONFIG_PATH="$(brew --prefix libffi)/lib/pkgconfig/"
tar -xzf target.tar.gz tar -xzf target.tar.gz
./etc/ci/update-wpt-checkout fetch-and-update-expectations ./etc/ci/update-wpt-checkout fetch-and-update-expectations
./etc/ci/update-wpt-checkout open-pr ./etc/ci/update-wpt-checkout open-pr
@@ -637,7 +638,11 @@ def macos_release_build(args=""):
def macos_wpt(): def macos_wpt():
build_task = macos_release_build("--with-debug-assertions") build_task = macos_release_build("--with-debug-assertions")
def macos_run_task(name): def macos_run_task(name):
task = macos_task(name).with_python2() task = (
macos_task(name)
.with_python2()
.with_env(PKG_CONFIG_PATH="homebrew/lib/pkgconfig")
)
return with_homebrew(task, ["etc/taskcluster/macos/Brewfile-gstreamer"]) return with_homebrew(task, ["etc/taskcluster/macos/Brewfile-gstreamer"])
wpt_chunks("macOS x64", macos_run_task, build_task, repo_dir="repo", wpt_chunks("macOS x64", macos_run_task, build_task, repo_dir="repo",
total_chunks=6, processes=4) total_chunks=6, processes=4)
@@ -780,7 +785,7 @@ def macos_task(name):
return ( return (
decisionlib.MacOsGenericWorkerTask(name) decisionlib.MacOsGenericWorkerTask(name)
.with_provisioner_id("proj-servo") .with_provisioner_id("proj-servo")
.with_worker_type("macos") .with_worker_type("macos-disabled-mac9")
.with_treeherder_required() .with_treeherder_required()
) )
@@ -925,7 +930,6 @@ def macos_build_task(name):
.with_script(""" .with_script("""
export OPENSSL_INCLUDE_DIR="$(brew --prefix openssl)/include" export OPENSSL_INCLUDE_DIR="$(brew --prefix openssl)/include"
export OPENSSL_LIB_DIR="$(brew --prefix openssl)/lib" export OPENSSL_LIB_DIR="$(brew --prefix openssl)/lib"
export PKG_CONFIG_PATH="$(brew --prefix libffi)/lib/pkgconfig/"
""") """)
.with_directory_mount( .with_directory_mount(