mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Package in platform workflows
This commit is contained in:
parent
cfef75c99b
commit
ec5b646b50
4 changed files with 53 additions and 4 deletions
17
.github/workflows/mac.yml
vendored
17
.github/workflows/mac.yml
vendored
|
@ -6,12 +6,20 @@ on:
|
|||
layout:
|
||||
required: true
|
||||
type: string
|
||||
unit-tests:
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
layout:
|
||||
required: true
|
||||
type: choice
|
||||
options: ["2013", "2020"]
|
||||
unit-tests:
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
push:
|
||||
branches: ["try-mac"]
|
||||
|
||||
|
@ -19,6 +27,7 @@ env:
|
|||
RUST_BACKTRACE: 1
|
||||
SHELL: /bin/bash
|
||||
LAYOUT: "${{ contains(inputs.layout, '2020') && 'layout-2020' || 'layout-2013' }}"
|
||||
PACKAGE: "${{ contains(inputs.layout, '2020') && 'mac-layout2020' || 'mac' }}"
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
RUSTC_WRAPPER: "sccache"
|
||||
CCACHE: "sccache"
|
||||
|
@ -61,11 +70,17 @@ jobs:
|
|||
- name: Smoketest
|
||||
run: python3 ./mach smoketest
|
||||
- name: Unit tests
|
||||
if: ${{ inputs.unit-tests }}
|
||||
run: python3 ./mach test-unit --release --with-${{ env.LAYOUT }}
|
||||
- name: Test package
|
||||
- name: Package
|
||||
run: python3 ./mach package --release
|
||||
- name: Package smoketest
|
||||
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
|
||||
run: gtar -czf target.tar.gz target/release/servo target/release/*.dylib resources
|
||||
- name: Archive binary
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue