-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (54 loc) · 1.57 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
name: CI
on:
pull_request:
branches:
-master
paths-ignore:
- "*.md"
- "*.txt"
- "doxyfile"
workflow_dispatch:
concurrency:
group: ci-${{ github.head_ref }}
cancel-in-progress: true
jobs:
testrunner:
strategy:
fail-fast: true
matrix:
sanitizer: [none, address]
type: [RelWithDebInfo, Release]
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build
run: |
if [ "${{ matrix.sanitizer }}" = "none" ]; then
./build.sh -t "${{ matrix.type }}"
else
./build.sh -t "${{ matrix.type }}" -o "-DCMAKE_CXX_FLAGS=-fsanitize=${{ matrix.sanitizer }}"
fi
- name: Run tests
run: |
git install lfs
git lfs pull
cd test
tar -xvzf input.tar.gz
cd ..
for shrinkingFactor in 64 128 256; do
for threadCount in 1 2 4; do
for case in mok_structure mok_fluid trebuchet_linear; do
echo "Running $case on $threadCount threads with $shrinkingFactor shrinking ..."
export OMP_NUM_THREADS=$threadCount
if ! build/bin/mcgs_testrunner \
test/${case}.mm test/${case}_rhs.mm \
-s $shrinkingFactor $shrinkingFactor \
-i 1e2
then exit 1
fi
done
done
done