This commit is contained in:
Jonathan Schwender 2025-06-02 18:47:18 +02:00 committed by GitHub
commit 9504c04a15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 43 additions and 1 deletions

View file

@ -43,9 +43,46 @@ jobs:
run: |
sudo apt update
./mach bootstrap
# TODO: Do GitHub anotaions
# TODO: Do GitHub annotations
- name: Clippy
run: |
./mach clippy --use-crown --locked -- -- --deny warnings
- name: Tidy
run: ./mach test-tidy --no-progress --all
msrv_check:
name: Minimum supported Rust version check
runs-on: ubuntu-22.04
env:
# This version should be kept in sync with the `rust-version` in our
# workspace Cargo.toml. Changes should be discussed on zulip.
MINIMUM_SUPPORTED_RUST_VERSION: "1.85.0"
steps:
- uses: actions/checkout@v4
if: github.event_name != 'pull_request_target'
with:
fetch-depth: 1
# This is necessary to checkout the pull request if this run was triggered via a
# `pull_request_target` event.
- uses: actions/checkout@v4
if: github.event_name == 'pull_request_target'
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1
- name: Set LIBCLANG_PATH env # needed for bindgen in mozangle
run: echo "LIBCLANG_PATH=/usr/lib/llvm-14/lib" >> $GITHUB_ENV
- name: Setup Python
if: ${{ runner.environment != 'self-hosted' }}
uses: ./.github/actions/setup-python
- name: Bootstrap dependencies
if: ${{ runner.environment != 'self-hosted' }}
run: |
sudo apt update
./mach bootstrap --skip-lints
- name: Install MSRV
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${MINIMUM_SUPPORTED_RUST_VERSION}
- name: Compile libservo with MSRV
run: |
cargo +${MINIMUM_SUPPORTED_RUST_VERSION} build -p libservo --locked

View file

@ -13,6 +13,11 @@ authors = ["The Servo Project Developers"]
license = "MPL-2.0"
edition = "2024"
publish = false
# We have yet to decide on a policy for updating the minimum supported rust version.
# Before increasing this, please open a discussion on zulip explaining the reason
# why we should consider increasing our minimum supported rust version.
# Please also note, that the **default** rust version in rust-toolchain.toml may be
# bumped freely.
rust-version = "1.85.0"
[workspace.dependencies]