Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ jobs:
contents: read
pull-requests: write
steps:
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v8
with:
pattern: result-*

- uses: actions/github-script@v7
- uses: actions/github-script@v9
with:
script: |
const fs = require('fs');
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Lint

on:
workflow_dispatch:
pull_request:
paths:
- '**.h'
- '**.cxx'
- '**.py'
- 'pyproject.toml'
- '.github/workflows/lint.yml'

permissions:
contents: read

concurrency:
group: lint-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
clang-format:
name: clang-format
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7

# The whole tree is formatted, so check it whole: no diff-vs-base
# machinery, and drift cannot accumulate in untouched files.
- name: Check C++ formatting
run: |
sudo apt-get install -y clang-format-18
find src test/cpp -name '*.cxx' -o -name '*.h' \
| xargs clang-format-18 --dry-run -Werror

ruff:
name: ruff
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7

- uses: actions/setup-python@v7
with:
python-version: '3.12'

- name: Check python lint and formatting
run: |
pip install ruff==0.16.3
ruff check .
ruff format --check .
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
contents: read
issues: write
steps:
- uses: actions/github-script@v7
- uses: actions/github-script@v9
with:
script: |
const marker = '<!-- cppjit-nightly-drift -->';
Expand Down
Loading