Add action to run validation on every commit
Some checks failed
Validate the build / Validate-With-Modern-Clang (push) Failing after 19s

This commit is contained in:
omicron 2025-03-30 23:34:12 +02:00
parent 5cdb60d395
commit 2cc049f765

View File

@ -0,0 +1,43 @@
name: Validate the build
run-name: ${{ gitea.actor }} is validating code with clang 19
on: [push]
jobs:
Validate-With-Modern-Clang:
runs-on: ubuntu-latest
container:
image: node:18-alpine
steps:
- run: echo "Starting validation process"
- name: Install dependencies
run: |
apk add --no-cache git make
# Install LLVM/Clang 19 from edge repository
echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
apk update
apk add --no-cache llvm19 clang19 valgrind
# Verify versions
echo "---------------------"
echo "Clang version:"
which clang-19
which clang
clang --version
echo "---------------------"
echo "Valgrind version:"
valgrind --version
echo "---------------------"
- name: Check out repository code
uses: actions/checkout@v4
- name: Validate code
run: |
echo "Validating code with make validate..."
make validate
- run: echo "Validation status is ${{ job.status }}."