Merge pull request #8 from jaqx0r/dependabot/github_actions/codecov/c… #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
compiler: [ gcc, clang ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install dependencies | |
run: | | |
sudo apt-get install -y \ | |
curl \ | |
scons \ | |
bison \ | |
flex \ | |
dejagnu \ | |
lcov \ | |
${{ matrix.compiler }} | |
- name: test | |
run: scons coverage=yes check coverage.info | |
env: | |
CC: ${{ matrix.compiler }} | |
- uses: codecov/codecov-action@v4 | |
with: | |
file: coverage.info | |
- name: distcheck | |
run: scons distcheck | |
env: | |
CC: ${{ matrix.compiler }} |