-
Notifications
You must be signed in to change notification settings - Fork 16
102 lines (90 loc) · 3.49 KB
/
pull_request.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: uvg266_pr_tests
on:
pull_request_target:
types: [labeled]
jobs:
basic-test:
runs-on: self-hosted
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
steps:
- uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: cmake
run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
- name: make
run: make install -j
- name: Run tests
run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
test-ubsan:
runs-on: self-hosted
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
env:
CC: gcc
CFLAGS: -fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=alignment
steps:
- uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: cmake
run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
- name: make
run: make install -j
- name: Run tests
run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
test-asan:
runs-on: self-hosted
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
env:
CC: gcc
CFLAGS: -fsanitize=address
ASAN_OPTIONS: detect_leaks=0
# AddressSanitizer adds some extra symbols so we expect a failure from
# the external symbols test.
XFAIL_TESTS: test_external_symbols
steps:
- uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: cmake
run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
- name: make
run: make install -j
- name: Run tests
run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
# test-tsan:
# runs-on: self-hosted
# if: contains(github.event.pull_request.labels.*.name, 'safe to test')
# env:
# CC: gcc
# CFLAGS: -fsanitize=thread
# steps:
# - uses: actions/checkout@v2
# with:
# ref: ${{github.event.pull_request.head.ref}}
# repository: ${{github.event.pull_request.head.repo.full_name}}
# - name: cmake
# run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
# - name: make
# run: make install -j
# - name: Run tests
# run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
test-valgrind:
runs-on: self-hosted
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
env:
UVG266_OVERRIDE_angular_pred: generic
steps:
- uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: cmake
run: cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
- name: make
run: make install -j
- name: Run tests
run: export PATH="/home/docker/bin:${PATH}" && CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test