mirror of
https://github.com/servo/servo
synced 2026-05-12 18:06:32 +02:00
Raise an exception when dependencies fail to install. Also split the run phase of the Linux bootstrap so that either of these failing commands will cause the job to fail.
30 lines
766 B
YAML
30 lines
766 B
YAML
name: Basic cross-platform builds and checks
|
|
on:
|
|
pull_request:
|
|
branches: ["**"]
|
|
|
|
env:
|
|
RUST_BACKTRACE: 1
|
|
SHELL: /bin/bash
|
|
|
|
jobs:
|
|
build-linux:
|
|
name: Build (Linux)
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 2
|
|
- name: Bootstrap Python
|
|
run: python3 -m pip install --upgrade pip virtualenv
|
|
- name: Bootstrap dependencies
|
|
run: sudo apt update && python3 ./mach bootstrap
|
|
- name: Release build
|
|
run: python3 ./mach build --release
|
|
- name: Unit tests
|
|
run: python3 ./mach test-unit --release
|
|
- name: Tidy
|
|
run: python3 ./mach test-tidy --no-progress --all
|
|
- name: Lockfile check
|
|
run: ./etc/ci/lockfile_changed.sh
|