2023-03-13 10:42:12 +00:00
|
|
|
name: C
|
2023-01-30 17:37:04 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2023-03-13 10:42:12 +00:00
|
|
|
tests:
|
2023-01-30 17:37:04 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2023-03-13 10:42:12 +00:00
|
|
|
- name: Check formatting
|
2023-03-28 08:26:51 -05:00
|
|
|
working-directory: src
|
2023-03-13 10:42:12 +00:00
|
|
|
run: |
|
|
|
|
make format
|
|
|
|
git diff --exit-code
|
2023-03-28 08:26:51 -05:00
|
|
|
- name: Build/Test
|
|
|
|
working-directory: src
|
|
|
|
run: make
|
2023-03-13 10:42:12 +00:00
|
|
|
- name: Clang Sanitizers
|
2023-03-28 08:26:51 -05:00
|
|
|
working-directory: src
|
|
|
|
run: make sanitize
|
2023-02-11 10:03:35 -06:00
|
|
|
- name: Clang Static Analyzer
|
2023-03-28 08:26:51 -05:00
|
|
|
working-directory: src
|
|
|
|
run: make analyze
|
2023-02-01 08:58:52 +01:00
|
|
|
- name: Install LLVM
|
|
|
|
uses: egor-tensin/setup-clang@v1
|
|
|
|
- name: Generate coverage report
|
2023-03-28 08:26:51 -05:00
|
|
|
working-directory: src
|
|
|
|
run: make coverage
|
2023-02-01 08:58:52 +01:00
|
|
|
- name: Save coverage report
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: coverage
|
|
|
|
path: src/coverage.html
|