feat: Github CI (#12)

* feat: Github CI

* add verbose to gcc

* reorder jobs

* add extra warnings and small fix
This commit is contained in:
2025-08-20 11:10:08 +02:00
committed by GitHub
parent 70c2f02b0b
commit bb82ae6458
3 changed files with 35 additions and 2 deletions
+33
View File
@@ -0,0 +1,33 @@
name: C-lang CI
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: gcc
run: mkdir -p build && gcc -v -Wall -Wextra -Werror src/*.c src/*.h -lm -o build/out
build-release:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: aclocal
run: aclocal
- name: autoconf
run: autoconf
- name: automake
run: automake --add-missing
- name: configure
run: ./configure
- name: make
run: make
- name: make distcheck
run: make distcheck