26 lines
443 B
YAML
26 lines
443 B
YAML
name: Clang Lint CI
|
|
|
|
concurrency:
|
|
group: lint-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/lint.yml'
|
|
- 'src/*.c'
|
|
- 'src/*.h'
|
|
|
|
env:
|
|
GCC_ARGS: src/*.c src/*.h -Ofast
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v5
|
|
- name: gcc
|
|
run: gcc -v -Wall -Wextra -Werror $GCC_ARGS
|