Compare commits
2 Commits
e79fa7fdd1
...
c6d8b411fe
| Author | SHA1 | Date | |
|---|---|---|---|
| c6d8b411fe | |||
| dcf30ee389 |
@@ -1,10 +1,18 @@
|
|||||||
name: C-lang CI
|
name: Clang Build CI
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: build-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: ["master"]
|
paths:
|
||||||
pull_request:
|
- '.github/workflows/build.yml'
|
||||||
branches: ["master"]
|
- 'src/*.c'
|
||||||
|
- 'src/*.h'
|
||||||
|
- 'configure.ac'
|
||||||
|
- 'Makefile.am'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GCC_ARGS: src/*.c src/*.h -Ofast
|
GCC_ARGS: src/*.c src/*.h -Ofast
|
||||||
@@ -12,18 +20,11 @@ env:
|
|||||||
TEST_ARGS: ""
|
TEST_ARGS: ""
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: gcc
|
|
||||||
run: gcc -v -Wall -Wextra -Werror $GCC_ARGS
|
|
||||||
|
|
||||||
build-release:
|
build-release:
|
||||||
needs: lint
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
- name: aclocal
|
- name: aclocal
|
||||||
run: aclocal
|
run: aclocal
|
||||||
- name: autoconf
|
- name: autoconf
|
||||||
@@ -38,10 +39,10 @@ jobs:
|
|||||||
run: make distcheck
|
run: make distcheck
|
||||||
|
|
||||||
run:
|
run:
|
||||||
needs: lint
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v5
|
||||||
- name: gcc
|
- name: gcc
|
||||||
run: mkdir -p build && gcc $GCC_ARGS -o build/$TARGET
|
run: mkdir -p build && gcc $GCC_ARGS -o build/$TARGET
|
||||||
- name: run program
|
- name: run program
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
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
|
||||||
+1
-1
@@ -24,4 +24,4 @@ configure
|
|||||||
src/margen*
|
src/margen*
|
||||||
*.pkg.tar.zst
|
*.pkg.tar.zst
|
||||||
pkg
|
pkg
|
||||||
margen-*
|
margen-*
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[](https://github.com/klemek/margen/actions/workflows/ci.yml)
|
[](https://git.klemek.fr/klemek/margen/actions?workflow=lint.yml) [](https://git.klemek.fr/klemek/margen/actions?workflow=build.yml)
|
||||||
|
|
||||||
# margen
|
# margen
|
||||||
|
|
||||||
@@ -90,4 +90,4 @@ git push origin master --tags
|
|||||||
# attach .tar.gz to the github release
|
# attach .tar.gz to the github release
|
||||||
make -f Makefile.dev release-arch
|
make -f Makefile.dev release-arch
|
||||||
# attach .pkg.tar.zst to the github release
|
# attach .pkg.tar.zst to the github release
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user