-
Notifications
You must be signed in to change notification settings - Fork 12
47 lines (37 loc) · 1.07 KB
/
valgrind.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
name: Valgrind Memory Check
on:
- push
- pull_request
env:
CARGO_TERM_COLOR: always
jobs:
valgrind:
name: valgrind
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
with:
sdk: 2.17.7
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Update apt
run: sudo apt-get update
- name: Install libclang
run: sudo apt-get install -y libclang-dev
- name: Rust build example
working-directory: ./example
run: cargo build --verbose
- name: Rust generate Dart example
working-directory: ./example
run: cargo run
- name: Dart compile example
working-directory: ./dart_example
run: dart compile exe -D --enable-asserts bin/dart_example.dart
- name: Test binary via Valgrind
working-directory: ./dart_example
run: |
sudo apt install -y valgrind
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$(pwd)/../example/target/debug/"
../.github/workflows/valgrind.py ./bin/dart_example.exe