mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
Taskcluster: build Servo Nigthly for Linux, upload to S3
This commit is contained in:
parent
3680fb7ffa
commit
872c2d2732
1 changed files with 26 additions and 0 deletions
|
@ -73,6 +73,7 @@ def main(task_for):
|
||||||
elif task_for == "daily":
|
elif task_for == "daily":
|
||||||
daily_tasks_setup()
|
daily_tasks_setup()
|
||||||
with_rust_nightly()
|
with_rust_nightly()
|
||||||
|
linux_nightly()
|
||||||
|
|
||||||
|
|
||||||
# These are disabled in a "real" decision task,
|
# These are disabled in a "real" decision task,
|
||||||
|
@ -298,6 +299,31 @@ def windows_release():
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def linux_nightly():
|
||||||
|
return (
|
||||||
|
linux_build_task("Nightly build and upload")
|
||||||
|
.with_treeherder("Linux x64", "Nightly")
|
||||||
|
.with_features("taskclusterProxy")
|
||||||
|
.with_scopes("secrets:get:project/servo/s3-upload")
|
||||||
|
.with_env(PY=r"""if 1:
|
||||||
|
import urllib, json
|
||||||
|
url = "http://taskcluster/secrets/v1/secret/project/servo/s3-upload"
|
||||||
|
secret = json.load(urllib.urlopen(url))["secret"]
|
||||||
|
open("/root/.aws/credentials", "w").write(secret["credentials_file"])
|
||||||
|
""")
|
||||||
|
# Not reusing the build made for WPT because it has debug assertions
|
||||||
|
.with_script("""
|
||||||
|
./mach build --release
|
||||||
|
./mach package --release
|
||||||
|
mkdir /root/.aws
|
||||||
|
python -c "$PY"
|
||||||
|
./mach upload-nightly linux
|
||||||
|
""")
|
||||||
|
.with_artifacts("/repo/target/release/servo-tech-demo.tar.gz")
|
||||||
|
.find_or_create("build.linux_x64_nightly" + CONFIG.git_sha)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def linux_wpt():
|
def linux_wpt():
|
||||||
release_build_task = linux_release_build(with_debug_assertions=True)
|
release_build_task = linux_release_build(with_debug_assertions=True)
|
||||||
total_chunks = 2
|
total_chunks = 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue