/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/lint.yml
83 строки
3 KB
Martin Robinson
Use `ci-runners/actions/checkout` consistently (#46725)
23 июл 2026, 12:07
Не верифицирован
23 июл 2026, 12:07
b895d3d
Код
Авторство
О чём код?
name: Lint on: workflow_call: workflow_dispatch: env: RUST_BACKTRACE: 1 SHELL: /bin/bash CARGO_INCREMENTAL: 0 jobs: # Runs the underlying job (“workload”) on a self-hosted runner if available, # with the help of a `runner-select` job and a `runner-timeout` job. runner-select: runs-on: ubuntu-24.04 outputs: unique-id: ${{ steps.select.outputs.unique-id }} selected-runner-label: ${{ steps.select.outputs.selected-runner-label }} runner-type-label: ${{ steps.select.outputs.runner-type-label }} is-self-hosted: ${{ steps.select.outputs.is-self-hosted }} steps: - name: Runner select id: select uses: servo/ci-runners/actions/runner-select@a05e7e830e3f4d4c71bdc5a38f003f052b72668c with: GITHUB_TOKEN: ${{ github.token }} # Before updating the GH action runner image for the nightly job, ensure # that the system has a glibc version that is compatible with the one # used by the wpt.fyi runners. github-hosted-runner-label: ubuntu-22.04 self-hosted-image-name: servo-ubuntu2204 # You can disable self-hosted runners globally by creating a repository variable named # NO_SELF_HOSTED_RUNNERS with any non-empty value. # <https://github.com/servo/servo/settings/variables/actions> NO_SELF_HOSTED_RUNNERS: ${{ vars.NO_SELF_HOSTED_RUNNERS }} # Any other boolean conditions that disable self-hosted runners go here. force-github-hosted-runner: ${{ inputs.force-github-hosted-runner }} lint: needs: - runner-select name: Lint [${{ needs.runner-select.outputs.unique-id }}] runs-on: ${{ needs.runner-select.outputs.selected-runner-label }} steps: - uses: servo/ci-runners/actions/checkout@a05e7e830e3f4d4c71bdc5a38f003f052b72668c with: # Fetch all commits, for `mach test-tidy` fetch-depth: 0 - name: Set LIBCLANG_PATH env # needed for bindgen in mozangle if: ${{ runner.environment != 'self-hosted' }} 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: Install taplo if: ${{ runner.environment != 'self-hosted' }} uses: baptiste0928/cargo-install@v3 with: crate: taplo-cli locked: true - name: Install cargo-deny if: ${{ runner.environment != 'self-hosted' }} uses: baptiste0928/cargo-install@v3 with: crate: cargo-deny version: 0.19.0 locked: true - name: Change Mirror Priorities if: ${{ runner.environment != 'self-hosted' }} uses: ./.github/actions/apt-mirrors - name: Bootstrap dependencies if: ${{ runner.environment != 'self-hosted' }} timeout-minutes: 30 run: | sudo apt update ./mach bootstrap --yes --skip-nextest - name: Clippy run: | ./mach clippy --locked --github-annotations -- -- --deny warnings - name: Tidy env: CI_PULL_REQUEST_BODY: ${{ github.event.pull_request.body }} run: ./mach test-tidy --no-progress --all --github-annotations