c-kzg-4844/.github/workflows/c-tests.yml

50 lines
988 B
YAML

name: C
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Check formatting
run: |
cd src
make format
git diff --exit-code
- name: Build
run: |
cd src
make blst
make
- name: Test
run: |
cd src
make test
- name: Clang Sanitizers
run: |
cd src
make sanitize
- name: Clang Static Analyzer
run: |
cd src
make analyze
- name: Install LLVM
uses: egor-tensin/setup-clang@v1
- name: Generate coverage report
run: |
cd src
make coverage
- name: Save coverage report
uses: actions/upload-artifact@v3
with:
name: coverage
path: src/coverage.html