mirror of
https://github.com/servo/servo.git
synced 2025-07-31 03:00:29 +01:00
Auto merge of #29901 - mukilan:switch-nightly-to-2020-layout, r=mrobinson
Default nightly builds to layout 2020 This PR switches the filenames used by nightly builds so that the default `servo-latest.{ext}` packages use the 2020 engine and the 'servo-latest-legacy-layout.{ext}` packages use the 2013 engine. Since the platform workflows are reused by the main, quick-check, PR and WPT import flows and since the 2013/2020 flags are also controlled by try branches, I've kept the changes isolated to `nightly.yml` and `package_commands.py` and have avoided changing the input parameters. If we want to deault all the workflows to 2020, I can decline this PR and raise a new one. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because they modify packaging logic.
This commit is contained in:
commit
7590b47dbd
2 changed files with 31 additions and 27 deletions
|
@ -518,9 +518,9 @@ class PackageCommands(CommandBase):
|
|||
package_hash_fileobj = io.BytesIO(package_hash.encode('utf-8'))
|
||||
|
||||
if '2020' in platform:
|
||||
asset_name = f'servo-latest-layout-2020.{extension}'
|
||||
else:
|
||||
asset_name = f'servo-latest.{extension}'
|
||||
else:
|
||||
asset_name = f'servo-latest-legacy-layout.{extension}'
|
||||
|
||||
release.upload_asset(package, name=asset_name)
|
||||
release.upload_asset_from_memory(
|
||||
|
@ -545,7 +545,11 @@ class PackageCommands(CommandBase):
|
|||
BUCKET = 'servo-builds2'
|
||||
DISTRIBUTION_ID = 'EJ8ZWSJKFCJS2'
|
||||
|
||||
nightly_dir = 'nightly/{}'.format(platform)
|
||||
if '2020' in platform:
|
||||
nightly_dir = 'nightly/{}'.format(platform.replace('-layout2020', ''))
|
||||
else:
|
||||
nightly_dir = 'nightly/{}-legacy-layout'.format(platform)
|
||||
|
||||
filename = nightly_filename(package, timestamp)
|
||||
package_upload_key = '{}/{}'.format(nightly_dir, filename)
|
||||
extension = path.basename(package).partition('.')[2]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue