forked from edymtt/opendetex
-
Notifications
You must be signed in to change notification settings - Fork 35
47 lines (43 loc) · 1.13 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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: Set compiler
run: |
export CC=${{matrix.compiler}}
$CC --version
- name: Compile and test with valgrind
if: ${{ matrix.valgrind == true }}
run: |
CFLAGS=-g make
sudo apt install valgrind
./test.pl --valgrind
- name: Compile and test without valgrind
if: ${{ matrix.valgrind != true }}
run: |
make
./test.pl
- name: Test packaging
if: ${{ matrix.valgrind != true }}
run: make package