Limit testing with valgrind #23
Workflow file for this run
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: Test | |
on: push | |
jobs: | |
test: | |
# https://github.com/actions/runner-images | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
compiler: gcc | |
valgrind: true | |
- os: ubuntu-latest | |
compiler: clang | |
valgrind: true | |
- os: ubuntu-20.04 | |
compiler: gcc | |
valgrind: false | |
- os: ubuntu-20.04 | |
compiler: clang | |
valgrind: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup dependencies | |
run: sudo apt install libfl-dev | |
- name: Compile | |
run: | | |
export CC=${{matrix.compiler}} | |
$CC --version | |
make | |
- name: Test with valgrind | |
if: ${{ matrix.valgrind == 'true' }} | |
run: | | |
sudo apt install valgrind | |
./test.pl --valgrind | |
- name: Test without valgrind | |
if: ${{ matrix.valgrind != 'true' }} | |
run: | | |
./test.pl | |
- name: Test packaging | |
if: ${{ matrix.valgrind != 'true' }} | |
run: make package |