mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Compare commits
2 Commits
6e4a9e85a2
...
jdm-patch-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
465961d995 | ||
|
|
10470cd7bb |
173
.github/workflows/main.yml
vendored
173
.github/workflows/main.yml
vendored
@@ -13,170 +13,6 @@ env:
|
||||
SHELL: /bin/bash
|
||||
|
||||
jobs:
|
||||
build-win:
|
||||
name: Build (Windows)
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- name: Copy to C drive
|
||||
run: cp D:\a C:\ -Recurse
|
||||
- name: Bootstrap
|
||||
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||
run: |
|
||||
python -m pip install --upgrade pip virtualenv
|
||||
python mach fetch
|
||||
- name: Release build
|
||||
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||
run: python mach build --release --media-stack=dummy
|
||||
- name: Unit tests
|
||||
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||
run: python mach test-unit --release
|
||||
- name: Smoketest
|
||||
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||
run: python mach smoketest --angle
|
||||
|
||||
build-uwp-x64:
|
||||
name: Build (Windows UWP x64)
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- name: Copy to C drive
|
||||
run: cp D:\a C:\ -Recurse
|
||||
- name: Bootstrap
|
||||
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||
run: |
|
||||
python -m pip install --upgrade pip virtualenv
|
||||
python mach fetch
|
||||
- name: Release build
|
||||
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||
run: python mach build --release --target=x86_64-uwp-windows-msvc
|
||||
- name: Package
|
||||
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||
run: python mach package --release --target=x86_64-uwp-windows-msvc --uwp=x64
|
||||
env:
|
||||
CODESIGN_CERT: ${{ secrets.WINDOWS_CODESIGN_CERT }}
|
||||
- name: Tidy
|
||||
run: python mach test-tidy --force-cpp --no-wpt
|
||||
|
||||
build-uwp-arm64:
|
||||
name: Build (Windows UWP arm64)
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- name: Copy to C drive
|
||||
run: cp D:\a C:\ -Recurse
|
||||
- name: Bootstrap
|
||||
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||
run: |
|
||||
python -m pip install --upgrade pip virtualenv
|
||||
python mach fetch
|
||||
- name: Release build
|
||||
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||
run: python mach build --release --target=aarch64-uwp-windows-msvc
|
||||
- name: Package
|
||||
working-directory: "C:\\a\\${{ github.event.repository.name }}\\${{ github.event.repository.name }}"
|
||||
run: python mach package --release --target=aarch64-uwp-windows-msvc --uwp=arm64
|
||||
env:
|
||||
CODESIGN_CERT: ${{ secrets.WINDOWS_CODESIGN_CERT }}
|
||||
|
||||
build-mac:
|
||||
name: Build (macOS)
|
||||
runs-on: macos-10.15
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- name: Bootstrap
|
||||
run: |
|
||||
python3 -m pip install --upgrade pip virtualenv
|
||||
brew bundle install --verbose --no-upgrade --file=etc/taskcluster/macos/Brewfile
|
||||
brew bundle install --verbose --no-upgrade --file=etc/taskcluster/macos/Brewfile-build
|
||||
rm -rf /usr/local/etc/openssl
|
||||
rm -rf /usr/local/etc/openssl@1.1
|
||||
brew install openssl@1.1 gnu-tar
|
||||
- name: Release build
|
||||
run: |
|
||||
export OPENSSL_INCLUDE_DIR="$(brew --prefix openssl)/include"
|
||||
export OPENSSL_LIB_DIR="$(brew --prefix openssl)/lib"
|
||||
export PKG_CONFIG_PATH="$(brew --prefix libffi)/lib/pkgconfig/"
|
||||
export PKG_CONFIG_PATH="$(brew --prefix zlib)/lib/pkgconfig/:$PKG_CONFIG_PATH"
|
||||
python3 ./mach build --release
|
||||
- name: Smoketest
|
||||
run: python3 ./mach smoketest
|
||||
- name: Unit tests
|
||||
run: python3 ./mach test-unit --release
|
||||
- name: Test package
|
||||
run: python3 ./mach package --release
|
||||
- name: Package smoketest
|
||||
run: ./etc/ci/macos_package_smoketest.sh 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
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: release-binary-macos
|
||||
path: target.tar.gz
|
||||
|
||||
# mac-wpt:
|
||||
# #needs: build-mac
|
||||
# runs-on: macos-10.15
|
||||
# env:
|
||||
# max_chunk_id: 20
|
||||
# strategy:
|
||||
# matrix:
|
||||
# chunk_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# with:
|
||||
# fetch-depth: 2
|
||||
#
|
||||
# #- name: Download release binary
|
||||
# # uses: actions/download-artifact@v2
|
||||
# # with:
|
||||
# # name: release-binary-macos
|
||||
#
|
||||
# - name: Fake build
|
||||
# run: |
|
||||
# wget https://joshmatthews.net/release-binary-macos.zip
|
||||
# unzip release-binary-macos.zip
|
||||
#
|
||||
# - name: Prep test environment
|
||||
# run: |
|
||||
# brew install gnu-tar
|
||||
# gtar -xzf target.tar.gz
|
||||
# python3 -m pip install --upgrade pip virtualenv
|
||||
# brew bundle install --verbose --no-upgrade --file=etc/taskcluster/macos/Brewfile
|
||||
# - name: Smoketest
|
||||
# run: python3 ./mach smoketest
|
||||
# - name: Run tests
|
||||
# run: |
|
||||
# python3 ./mach test-wpt \
|
||||
# --release --processes=3 --timeout-multiplier=8 \
|
||||
# --total-chunks=${{ env.max_chunk_id }} --this-chunk=${{ matrix.chunk_id }} \
|
||||
# --log-raw=test-wpt.log \
|
||||
# --log-servojson=wpt-jsonsummary.log \
|
||||
# --always-succeed | cat
|
||||
# python3 ./mach filter-intermittents wpt-jsonsummary.log \
|
||||
# --log-intermittents=intermittents.log \
|
||||
# --log-filteredsummary=filtered-wpt-summary.log \
|
||||
# --tracker-api=default --reporter-api=default
|
||||
#
|
||||
# - name: Archive logs
|
||||
# uses: actions/upload-artifact@v2
|
||||
# with:
|
||||
# name: wpt${{ matrix.chunk_id }}-logs-macos
|
||||
# path: |
|
||||
# test-wpt.log
|
||||
# wpt-jsonsummary.log
|
||||
# filtered-wpt-summary.log
|
||||
# intermittents.log
|
||||
|
||||
build-linux:
|
||||
name: Build (Linux)
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -212,7 +48,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
chunk_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
|
||||
chunk_id: [2]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
@@ -234,7 +70,7 @@ jobs:
|
||||
- name: Run tests
|
||||
run: |
|
||||
python3 ./mach test-wpt \
|
||||
--release --processes $(nproc) --timeout-multiplier 2 \
|
||||
--release --processes $(nproc) --timeout-multiplier 4 \
|
||||
--total-chunks ${{ env.max_chunk_id }} --this-chunk ${{ matrix.chunk_id }} \
|
||||
--log-raw test-wpt.${{ matrix.chunk_id }}.log \
|
||||
--log-servojson wpt-jsonsummary.${{ matrix.chunk_id }}.log \
|
||||
@@ -243,6 +79,8 @@ jobs:
|
||||
--log-intermittents=intermittents.${{ matrix.chunk_id }}.log \
|
||||
--log-filteredsummary=filtered-wpt-summary.${{ matrix.chunk_id }}.log \
|
||||
--tracker-api=default --reporter-api=default
|
||||
env:
|
||||
RUST_LOG: net=debug
|
||||
- name: Archive logs
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
@@ -257,10 +95,7 @@ jobs:
|
||||
name: homu build finished
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- "build-win"
|
||||
- "build-uwp-x64"
|
||||
- "build-linux"
|
||||
- "build-mac"
|
||||
- "linux-wpt"
|
||||
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user