This means running the build inside a Docker container based on a (more)
stable build image.
* The setup action is now largely simplified for Linux.
* We hardcode llvm@21 for macOS since it allows us to get rid of
specifying llvm_version as an input variable. Since we no longer
support switching the LLVM version on Linux via that variable, this
seems like the best course of action.
We use a trick to optionally introduce a container image: `fromJSON()`
allows `null` as a return value, which causes the job to execute on the
runner directly. We need this for macOS and Windows jobs.
23 lines
508 B
YAML
23 lines
508 B
YAML
name: Lint Code
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: blacksmith-2vcpu-ubuntu-2404
|
|
if: github.repository == 'LadybirdBrowser/ladybird'
|
|
container:
|
|
image: ghcr.io/ladybirdbrowser/ladybird-ci:2026.05.3
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6.0.2
|
|
|
|
- name: Set Up Environment
|
|
uses: ./.github/actions/setup
|
|
with:
|
|
os: 'Linux'
|
|
arch: 'x86_64'
|
|
type: 'lint'
|
|
|
|
- name: Lint
|
|
run: "${GITHUB_WORKSPACE}/Meta/lint-ci.sh"
|