mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Package in platform workflows
This commit is contained in:
parent
cfef75c99b
commit
ec5b646b50
4 changed files with 53 additions and 4 deletions
8
.github/workflows/linux.yml
vendored
8
.github/workflows/linux.yml
vendored
|
@ -34,6 +34,7 @@ env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
SHELL: /bin/bash
|
SHELL: /bin/bash
|
||||||
LAYOUT: "${{ contains(inputs.layout, '2020') && 'layout-2020' || 'layout-2013' }}"
|
LAYOUT: "${{ contains(inputs.layout, '2020') && 'layout-2020' || 'layout-2013' }}"
|
||||||
|
PACKAGE: "${{ contains(inputs.layout, '2020') && 'linux-layout2020' || 'linux' }}"
|
||||||
SCCACHE_GHA_ENABLED: "true"
|
SCCACHE_GHA_ENABLED: "true"
|
||||||
RUSTC_WRAPPER: "sccache"
|
RUSTC_WRAPPER: "sccache"
|
||||||
CCACHE: "sccache"
|
CCACHE: "sccache"
|
||||||
|
@ -65,6 +66,13 @@ jobs:
|
||||||
run: python3 ./mach test-unit --release --with-${{ env.LAYOUT }}
|
run: python3 ./mach test-unit --release --with-${{ env.LAYOUT }}
|
||||||
- name: Lockfile check
|
- name: Lockfile check
|
||||||
run: ./etc/ci/lockfile_changed.sh
|
run: ./etc/ci/lockfile_changed.sh
|
||||||
|
- name: Package
|
||||||
|
run: python3 ./mach package --release
|
||||||
|
- name: Upload Package
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ env.PACKAGE }}
|
||||||
|
path: target/release/servo-tech-demo.tar.gz
|
||||||
- name: Package binary
|
- name: Package binary
|
||||||
run: tar -czf target.tar.gz target/release/servo resources
|
run: tar -czf target.tar.gz target/release/servo resources
|
||||||
- name: Archive binary
|
- name: Archive binary
|
||||||
|
|
17
.github/workflows/mac.yml
vendored
17
.github/workflows/mac.yml
vendored
|
@ -6,12 +6,20 @@ on:
|
||||||
layout:
|
layout:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
unit-tests:
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
layout:
|
layout:
|
||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options: ["2013", "2020"]
|
options: ["2013", "2020"]
|
||||||
|
unit-tests:
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
push:
|
push:
|
||||||
branches: ["try-mac"]
|
branches: ["try-mac"]
|
||||||
|
|
||||||
|
@ -19,6 +27,7 @@ env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
SHELL: /bin/bash
|
SHELL: /bin/bash
|
||||||
LAYOUT: "${{ contains(inputs.layout, '2020') && 'layout-2020' || 'layout-2013' }}"
|
LAYOUT: "${{ contains(inputs.layout, '2020') && 'layout-2020' || 'layout-2013' }}"
|
||||||
|
PACKAGE: "${{ contains(inputs.layout, '2020') && 'mac-layout2020' || 'mac' }}"
|
||||||
SCCACHE_GHA_ENABLED: "true"
|
SCCACHE_GHA_ENABLED: "true"
|
||||||
RUSTC_WRAPPER: "sccache"
|
RUSTC_WRAPPER: "sccache"
|
||||||
CCACHE: "sccache"
|
CCACHE: "sccache"
|
||||||
|
@ -61,11 +70,17 @@ jobs:
|
||||||
- name: Smoketest
|
- name: Smoketest
|
||||||
run: python3 ./mach smoketest
|
run: python3 ./mach smoketest
|
||||||
- name: Unit tests
|
- name: Unit tests
|
||||||
|
if: ${{ inputs.unit-tests }}
|
||||||
run: python3 ./mach test-unit --release --with-${{ env.LAYOUT }}
|
run: python3 ./mach test-unit --release --with-${{ env.LAYOUT }}
|
||||||
- name: Test package
|
- name: Package
|
||||||
run: python3 ./mach package --release
|
run: python3 ./mach package --release
|
||||||
- name: Package smoketest
|
- name: Package smoketest
|
||||||
run: ./etc/ci/macos_package_smoketest.sh target/release/servo-tech-demo.dmg
|
run: ./etc/ci/macos_package_smoketest.sh target/release/servo-tech-demo.dmg
|
||||||
|
- name: Upload package
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ env.PACKAGE }}
|
||||||
|
path: target/release/servo-tech-demo.dmg
|
||||||
- name: Package binary
|
- name: Package binary
|
||||||
run: gtar -czf target.tar.gz target/release/servo target/release/*.dylib resources
|
run: gtar -czf target.tar.gz target/release/servo target/release/*.dylib resources
|
||||||
- name: Archive binary
|
- name: Archive binary
|
||||||
|
|
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -35,6 +35,7 @@ jobs:
|
||||||
uses: ./.github/workflows/windows.yml
|
uses: ./.github/workflows/windows.yml
|
||||||
with:
|
with:
|
||||||
layout: '2013'
|
layout: '2013'
|
||||||
|
unit-tests: true
|
||||||
|
|
||||||
build-mac:
|
build-mac:
|
||||||
name: Mac
|
name: Mac
|
||||||
|
@ -42,6 +43,7 @@ jobs:
|
||||||
uses: ./.github/workflows/mac.yml
|
uses: ./.github/workflows/mac.yml
|
||||||
with:
|
with:
|
||||||
layout: '2013'
|
layout: '2013'
|
||||||
|
unit-tests: true
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
name: Linux
|
name: Linux
|
||||||
|
|
30
.github/workflows/windows.yml
vendored
30
.github/workflows/windows.yml
vendored
|
@ -6,12 +6,20 @@ on:
|
||||||
layout:
|
layout:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
unit-tests:
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
layout:
|
layout:
|
||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
options: ["2013", "2020"]
|
options: ["2013", "2020"]
|
||||||
|
unit-tests:
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
push:
|
push:
|
||||||
branches: ["try-windows"]
|
branches: ["try-windows"]
|
||||||
|
|
||||||
|
@ -19,6 +27,7 @@ env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
SHELL: /bin/bash
|
SHELL: /bin/bash
|
||||||
LAYOUT: "${{ contains(inputs.layout, '2020') && 'layout-2020' || 'layout-2013' }}"
|
LAYOUT: "${{ contains(inputs.layout, '2020') && 'layout-2020' || 'layout-2013' }}"
|
||||||
|
PACKAGE: "${{ contains(inputs.layout, '2020') && 'windows-msvc-layout2020' || 'windows-msvc' }}"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-win:
|
build-win:
|
||||||
|
@ -30,6 +39,12 @@ jobs:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
- name: Copy to C drive
|
- name: Copy to C drive
|
||||||
run: cp D:\a C:\ -Recurse
|
run: cp D:\a C:\ -Recurse
|
||||||
|
- name: wix311-binaries
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
Start-BitsTransfer -Source https://github.com/wixtoolset/wix3/releases/download/wix3111rtm/wix311-binaries.zip -Destination C:\\wix311-binaries.zip
|
||||||
|
Expand-Archive C:\\wix311-binaries.zip -DestinationPath C:\\wix
|
||||||
|
echo "C:\\wix" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||||
- name: Bootstrap
|
- name: Bootstrap
|
||||||
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: |
|
||||||
|
@ -38,12 +53,21 @@ jobs:
|
||||||
- name: Release build
|
- name: Release build
|
||||||
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: python mach build --release --media-stack=dummy --with-${{ env.LAYOUT }}
|
run: python mach build --release --media-stack=dummy --with-${{ env.LAYOUT }}
|
||||||
- name: Unit tests
|
|
||||||
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
|
||||||
run: python mach test-unit --release --with-${{ env.LAYOUT }}
|
|
||||||
- name: Smoketest
|
- name: Smoketest
|
||||||
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: python mach smoketest --angle
|
run: python mach smoketest --angle
|
||||||
|
- name: Unit tests
|
||||||
|
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||||
|
if: ${{ inputs.unit-tests }}
|
||||||
|
run: python mach test-unit --release --with-${{ env.LAYOUT }}
|
||||||
|
- name: Package
|
||||||
|
working-directory: "C:\\a\\servo\\servo"
|
||||||
|
run: python mach package --release
|
||||||
|
- name: Upload Package
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ env.PACKAGE }}
|
||||||
|
path: target/release/msi/Servo.exe
|
||||||
|
|
||||||
build_result:
|
build_result:
|
||||||
name: homu build finished
|
name: homu build finished
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue