Upload nightly builds for layout2020 variant

We'd like to start offering servo nightly builds
with layout 2020 engine so that users can test
the new layout without building servo. These new
builds will be offered in addition to the current
2013 builds until we switch over to 2020 as the default.
This commit is contained in:
Mukilan Thiyagarajan 2023-05-24 16:48:44 +05:30
parent 0377a1853a
commit a5238ed7a5
4 changed files with 39 additions and 3 deletions

View file

@ -88,7 +88,7 @@ jobs:
- name: Upload - name: Upload
if: ${{ inputs.upload }} if: ${{ inputs.upload }}
run: | run: |
python3 ./mach upload-nightly mac --secret-from-environment \ python3 ./mach upload-nightly ${{ env.PACKAGE }} --secret-from-environment \
--github-release-id ${{ inputs.github-release-id }} --github-release-id ${{ inputs.github-release-id }}
env: env:
S3_UPLOAD_CREDENTIALS: ${{ secrets.S3_UPLOAD_CREDENTIALS }} S3_UPLOAD_CREDENTIALS: ${{ secrets.S3_UPLOAD_CREDENTIALS }}

View file

@ -59,8 +59,11 @@ jobs:
needs: needs:
- create-draft-release - create-draft-release
- upload-linux - upload-linux
- upload-linux-2020
- upload-win - upload-win
- upload-win-2020
- upload-mac - upload-mac
- upload-mac-2020
upload-win: upload-win:
# This job is only useful when run on upstream servo. # This job is only useful when run on upstream servo.
@ -75,6 +78,19 @@ jobs:
github-release-id: ${{ needs.create-draft-release.outputs.release-id }} github-release-id: ${{ needs.create-draft-release.outputs.release-id }}
secrets: inherit secrets: inherit
upload-win-2020:
# This job is only useful when run on upstream servo.
if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch'
name: Upload nightly (Windows layout-2020)
needs:
- create-draft-release
uses: ./.github/workflows/windows.yml
with:
layout: '2020'
upload: true
github-release-id: ${{ needs.create-draft-release.outputs.release-id }}
secrets: inherit
upload-mac: upload-mac:
# This job is only useful when run on upstream servo. # This job is only useful when run on upstream servo.
if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch' if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch'
@ -88,6 +104,19 @@ jobs:
github-release-id: ${{ needs.create-draft-release.outputs.release-id }} github-release-id: ${{ needs.create-draft-release.outputs.release-id }}
secrets: inherit secrets: inherit
upload-mac-2020:
# This job is only useful when run on upstream servo.
if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch'
name: Upload nightly (macOS layout-2020)
needs:
- create-draft-release
uses: ./.github/workflows/mac.yml
with:
layout: '2020'
upload: true
github-release-id: ${{ needs.create-draft-release.outputs.release-id }}
secrets: inherit
upload-linux: upload-linux:
# This job is only useful when run on upstream servo. # This job is only useful when run on upstream servo.
if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch' if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch'
@ -104,7 +133,7 @@ jobs:
upload-linux-2020: upload-linux-2020:
# This job is only useful when run on upstream servo. # This job is only useful when run on upstream servo.
if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch' if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch'
name: Upload nightly (Linux layout2020) name: Upload nightly (Linux layout-2020)
needs: needs:
- create-draft-release - create-draft-release
uses: ./.github/workflows/linux.yml uses: ./.github/workflows/linux.yml

View file

@ -98,7 +98,7 @@ jobs:
if: ${{ inputs.upload }} if: ${{ inputs.upload }}
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}" working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
run: | run: |
python mach upload-nightly windows-msvc --secret-from-environment ` python mach upload-nightly ${{ env.PACKAGE }} --secret-from-environment `
--github-release-id ${{ inputs.github-release-id }} --github-release-id ${{ inputs.github-release-id }}
env: env:
S3_UPLOAD_CREDENTIALS: ${{ secrets.S3_UPLOAD_CREDENTIALS }} S3_UPLOAD_CREDENTIALS: ${{ secrets.S3_UPLOAD_CREDENTIALS }}

View file

@ -61,6 +61,9 @@ PACKAGES = {
'mac': [ 'mac': [
'target/release/servo-tech-demo.dmg', 'target/release/servo-tech-demo.dmg',
], ],
'mac-layout2020': [
'target/release/servo-tech-demo.dmg',
],
'macbrew': [ 'macbrew': [
'target/release/brew/servo.tar.gz', 'target/release/brew/servo.tar.gz',
], ],
@ -72,6 +75,10 @@ PACKAGES = {
r'target\release\msi\Servo.exe', r'target\release\msi\Servo.exe',
r'target\release\msi\Servo.zip', r'target\release\msi\Servo.zip',
], ],
'windows-msvc-layout2020': [
r'target\release\msi\Servo.exe',
r'target\release\msi\Servo.zip',
],
'uwp': [ 'uwp': [
r'support\hololens\AppPackages\ServoApp\FirefoxReality.zip', r'support\hololens\AppPackages\ServoApp\FirefoxReality.zip',
], ],