Skip to content

Commit 864de10

Browse files
committed
edit workflow file to match files
1 parent fc81d07 commit 864de10

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

.github/workflows/memory.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,36 @@ on:
66
jobs:
77
memory:
88
runs-on: ubuntu-24.04
9+
env:
10+
BENCHMARK_FILE: tests/inputs/function_exactly_two_of_four.aag
911

1012
steps:
1113
- name: Checkout
1214
uses: actions/checkout@v6
1315

16+
- name: Install Rust toolchain
17+
uses: dtolnay/rust-toolchain@nightly
18+
1419
- name: Install Valgrind
1520
run: |
1621
sudo apt-get update
1722
sudo apt-get install -y valgrind
1823
19-
- name: Build
20-
run: cargo build --release --examples
24+
- name: Build memory benchmarks
25+
run: |
26+
mkdir -p examples
27+
cp benchmark/memory/memory_raig.rs examples/memory_raig.rs
28+
cp benchmark/memory/memory_mutaig.rs examples/memory_mutaig.rs
29+
cp benchmark/memory/memory_aig_rs.rs examples/memory_aig_rs.rs
30+
cargo build --release --examples
2131
2232
- name: Profile raig
2333
run: |
2434
valgrind \
2535
--tool=massif \
2636
--time-unit=B \
2737
--massif-out-file=massif-raig.out \
28-
./target/release/examples/memory_raig tests/benchmark.aig
38+
./target/release/examples/memory_raig "$BENCHMARK_FILE"
2939
3040
ms_print massif-raig.out > massif-raig.txt
3141
@@ -35,7 +45,7 @@ jobs:
3545
--tool=massif \
3646
--time-unit=B \
3747
--massif-out-file=massif-mutaig.out \
38-
./target/release/examples/memory_mutaig tests/benchmark.aig
48+
./target/release/examples/memory_mutaig "$BENCHMARK_FILE"
3949
4050
ms_print massif-mutaig.out > massif-mutaig.txt
4151
@@ -45,7 +55,7 @@ jobs:
4555
--tool=massif \
4656
--time-unit=B \
4757
--massif-out-file=massif-aig-rs.out \
48-
./target/release/examples/memory_aig_rs tests/benchmark.aig
58+
./target/release/examples/memory_aig_rs "$BENCHMARK_FILE"
4959
5060
ms_print massif-aig-rs.out > massif-aig-rs.txt
5161
@@ -55,4 +65,4 @@ jobs:
5565
name: memory-profiles
5666
path: |
5767
massif-*.out
58-
massif-*.txt
68+
massif-*.txt

0 commit comments

Comments
 (0)