Skip to content

Commit a5cc0c2

Browse files
antonbaliasnikovakiramenai
authored andcommitted
ci: add capability to run regression tests under valgrind
1 parent fb5683a commit a5cc0c2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/build-binaries.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ on:
3434
required: false
3535
type: boolean
3636
default: true
37+
enable-valgrind:
38+
required: false
39+
default: 'false'
40+
type: string
41+
description: 'Run LLVM regression tests under valgrind.'
3742

3843

3944
jobs:
@@ -91,6 +96,7 @@ jobs:
9196
clone-llvm: false
9297
ccache-key-type: 'static'
9398
save-ccache: ${{ matrix.name == 'Linux x86' }}
99+
enable-valgrind: ${{ inputs.enable-valgrind }}
94100

95101
# Required to keep executable permissions for binaries
96102
- name: Prepare tarball

.github/workflows/regression-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ on:
1717
default: 'Address'
1818
type: string
1919
description: 'A sanitizer to build LLVM with. Possible values are Address, Memory, MemoryWithOrigins, Undefined, Thread, DataFlow, and Address;Undefined'
20+
enable-valgrind:
21+
required: false
22+
default: 'false'
23+
type: string
24+
description: 'Run LLVM regression tests under valgrind.'
2025

2126
defaults:
2227
run:
@@ -170,6 +175,7 @@ jobs:
170175
clone-llvm: false
171176
ccache-key-type: 'static' # rotate ccache key every month
172177
sanitizer: ${{ inputs.llvm-sanitizer }}
178+
enable-valgrind: ${{ inputs.enable-valgrind }}
173179

174180
# `verify-llvm` is a special target that runs all the regression tests
175181
# it includes `check-llvm` and special codegen tests

0 commit comments

Comments
 (0)