Skip to content

Commit 89136a4

Browse files
committed
Add github action.
1 parent 71102c7 commit 89136a4

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/tests.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
extrae-rs-tests:
14+
name: Run extrae-rs tests
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Install Rust
20+
uses: actions-rs/toolchain@v1
21+
with:
22+
toolchain: stable
23+
24+
- name: Run tests
25+
run: cargo test --features profiling -- --nocapture
26+
27+
extrae-rs-hwcounters:
28+
name: Run extrae-rs tests
29+
runs-on: ubuntu-latest
30+
31+
steps:
32+
- uses: actions/checkout@v4
33+
- name: Install Rust
34+
uses: actions-rs/toolchain@v1
35+
with:
36+
toolchain: stable
37+
38+
- name: Build everything
39+
run: cargo build --features profiling
40+
41+
- name: Enable perf permissions
42+
run: sudo sysctl -w kernel.perf_event_paranoid=1
43+
44+
- name: Run test threads
45+
env:
46+
EXTRAE_counters: "cpu-migrations"
47+
run: ./target/debug/program_threads

0 commit comments

Comments
 (0)