Test with nightly rustc #55
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test with nightly rustc | |
on: | |
schedule: | |
# Run at 5:30 am, daily. | |
- cron: '15 5 * * *' | |
workflow_dispatch: | |
env: | |
RUST_BACKTRACE: 1 | |
SHELL: /bin/bash | |
jobs: | |
build-linux-with-rust-nightly: | |
# This job is only useful when run on upstream servo. | |
if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch' | |
name: Build (Linux) + rustc nightly | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Update rustc | |
run: echo nightly > rust-toolchain | |
- name: Bootstrap | |
run: | | |
python3 -m pip install --upgrade pip virtualenv | |
sudo apt update | |
python3 ./mach bootstrap | |
- name: Release build | |
run: python3 ./mach build --release | |
- name: Smoketest | |
run: xvfb-run python3 ./mach smoketest --release | |
- name: Unit tests | |
run: python3 ./mach test-unit --release |