ci: add proper ci
Clang Lint CI / lint-video (push) Failing after 59s
Clang Build CI / run-no-video (push) Successful in 1m6s
Clang Build CI / run-video (push) Successful in 1m24s
Clang Build CI / build-release (push) Successful in 2m0s
Clang Lint CI / lint-no-video (push) Successful in 1m55s

This commit is contained in:
2026-05-13 16:17:08 +02:00
parent a7bc58e94e
commit b9de6bc01b
6 changed files with 140 additions and 73 deletions
+44
View File
@@ -0,0 +1,44 @@
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 -lglfw -lGL -lm -lasound -lbsd -Iinclude hashmap.c/hashmap.c log.c/src/log.c -DGLFW_INCLUDE_NONE -DGLFW_NATIVE_INCLUDE_NONE
GCC_ARGS_VIDEO: -DGLFW_EXPOSE_NATIVE_EGL -DVIDEO_IN
PACKAGES: "libglfw3-dev libgl-dev libasound2-dev libbsd-dev"
PACKAGES_VIDEO: "libv4l-dev"
jobs:
lint-video:
runs-on: ubuntu-latest
steps:
- name: Install packages
run: apt update && apt install -y $PACKAGES
- name: Checkout repository
uses: actions/checkout@v5
with:
submodules: 'true'
- name: gcc
run: gcc -v -Wall -Wextra -Werror -Wno-format-truncation -Wunused-parameter $GCC_ARGS
lint-no-video:
runs-on: ubuntu-latest
steps:
- name: Install packages
run: apt update && apt install -y $PACKAGES $PACKAGES_VIDEO
- name: Checkout repository
uses: actions/checkout@v5
with:
submodules: 'true'
- name: gcc
run: gcc -v -Wall -Wextra -Werror -Wno-format-truncation $GCC_ARGS $GCC_ARGS_VIDEO