-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (74 loc) · 2.08 KB
/
testrunner.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: CI
on:
push:
branches:
- master
paths-ignore:
- "*.md"
- "*.gitignore"
- "*.txt"
- "!CMakeLists.txt"
- "*.png"
- "*.mtx"
- "*.mm"
pull_request:
branches:
- master
paths-ignore:
- "*.md"
- "*.gitignore"
- "*.txt"
- "!CMakeLists.txt"
- "*.png"
- "*.mtx"
- "*.mm"
workflow_dispatch:
concurrency:
group: ci-${{ github.head_ref }}
cancel-in-progress: true
jobs:
testrunner:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
sanitizer: [address, thread, undefined]
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build
run: |
./build.sh \
-t Debug \
-o "-DCMAKE_CXX_COMPILER=/usr/bin/g++-13" \
-o "-DCMAKE_CXX_FLAGS=-fsanitize=${{ matrix.sanitizer }}"
- name: Run tests
run: |
if ! build/bin/mtx2img --help; then
exit 1
fi
if ! build/bin/mtx2img .github/assets/fidap005.mtx out.png; then
exit 1
fi
if ! cat .github/assets/fidap005.mtx | build/bin/mtx2img - out.png; then
exit 1
fi
if ! build/bin/mtx2img .github/assets/fidap005.mtx - > out.png; then
exit 1
fi
if ! cat .github/assets/fidap005.mtx | build/bin/mtx2img - - > out.png; then
exit 1
fi
if ! build/bin/mtx2img .github/assets/fidap005.mtx out.png -r 10; then
exit 1
fi
for colormap in binary kindlmann viridis glasbey256 glasbey64 glasbey8; do
for aggregation in count sum max; do
echo "build/bin/mtx2img .github/assets/fidap005.mtx out.png -r 10 -a $aggregation -c $colormap"
if ! build/bin/mtx2img .github/assets/fidap005.mtx out.png -r 10 -a $aggregation -c $colormap; then
exit 1
fi
done
done