-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (41 loc) · 1.07 KB
/
ci-tests.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
48
49
---
name: "CITests"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
citests:
name: CI-Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
submodules: 'recursive'
- name: Run cmake
run: |
CXXFLAGS="-Wall -Wextra -Wpedantic -Werror -g"
CFLAGS="-Wall -Wextra -Wpedantic -Werror -g"
cmake .
make -j 4
- name: Install xz
run: |
sudo apt-get install -y xz-utils
- name: Perform Unit Tests
run: |
./ithitest
- name: Check sum3 scripts
run: |
./stages/stage-test.sh
- name: Run Valgrind
run: |
sudo apt-get update
sudo apt-get install -y valgrind
valgrind -v --error-exitcode=1 --track-origins=yes ./ithitest