Skip to content

Merge-queue-CI-Flow #8268

Merge-queue-CI-Flow

Merge-queue-CI-Flow #8268

Workflow file for this run

name: Merge-queue-CI-Flow
on:
merge_group:
types:
- checks_requested
env:
CI: 1
RUSTFLAGS: "-D warnings"
jobs:
code_style:
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
steps:
# Environment setup.
- uses: actions/checkout@v6
# Install rust components + lld.
- uses: ./.github/actions/bootstrap
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Setup pypy and link to the location expected by .cargo/config.toml.
- uses: actions/setup-python@v5
id: setup-pypy
with:
python-version: "pypy3.9"
- run: ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9
- env:
LD_LIBRARY_PATH: ${{ env.Python3_ROOT_DIR }}/bin
run: echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV
- run: pip install -r scripts/requirements.txt
# Check Cargo.lock is up to date.
- name: "Check Cargo.lock"
run: |
cargo update -w --locked
git diff --exit-code Cargo.lock
- name: "Run clippy on merge queue"
run: scripts/run_tests.py --command clippy
- name: "Run rustfmt on merge queue"
run: scripts/rust_fmt.sh --check