-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.15 KB
/
memleak.yml
File metadata and controls
41 lines (33 loc) · 1.15 KB
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
name: Memleak
on:
push:
paths:
- ".github/workflows/memleak.yml"
- "rust/**"
- "ext/**"
pull_request:
paths:
- ".github/workflows/memleak.yml"
- "rust/**"
- "ext/**"
jobs:
memleak:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Ruby
uses: ruby/setup-ruby@19a43a6a2428d455dbd1b85344698725179c9d8c # v1.289.0
with:
bundler-cache: true
- run: sudo apt-get update && sudo apt-get install -y valgrind
- name: Install Rust tools
run: |
rustup update --no-self-update stable
rustup default stable
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Run tests capturing leaks with `memory` sanitizer
run: SANITIZER=memory bundle exec rake ruby_test:valgrind
- name: Run tests capturing leaks with `leak` sanitizer
run: SANITIZER=leak bundle exec rake ruby_test:valgrind
- name: Run tests capturing leaks with `thread` sanitizer
run: SANITIZER=thread bundle exec rake ruby_test:valgrind