-
Notifications
You must be signed in to change notification settings - Fork 34
67 lines (63 loc) · 2.31 KB
/
tools.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Tool
on: [push]
env:
RUST_BACKTRACE: full
jobs:
shell:
name: "Command-line tools"
runs-on: ubuntu-latest
steps:
- name: "Install Packages"
run: sudo apt-get install -y libmpfr6 libmpfr-dev
- name: "Install Racket"
uses: Bogdanp/[email protected]
with:
version: "8.12"
- name: Install Rust compiler
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: actions/checkout@master
- name: "Install dependencies"
run: make install
- run: <bench/tutorial.fpcore racket -l herbie shell >/tmp/out.fpcore
name: "Run shell tool"
- run: test `grep -c :herbie-time /tmp/out.fpcore` -eq 3
name: "Test that shell output had three :herbie-time lines"
- run: racket -l herbie improve bench/tutorial.fpcore /tmp/out.fpcore
name: "Run improve tool"
- run: test `grep -c :herbie-time /tmp/out.fpcore` -eq 3
name: "Test that improve output had three :herbie-time lines"
- run: racket -l herbie report bench/tutorial.fpcore /tmp/out/
name: "Run report tool"
- run: test -d /tmp/out/
name: "Test that report created a directory"
- run: test -f /tmp/out/index.html
name: "Test that report created a index.html"
- run: test -f /tmp/out/results.json
name: "Test that report created a results.json"
determinism:
name: "Determinism"
runs-on: ubuntu-latest
steps:
- name: "Install Packages"
run: sudo apt-get install -y libmpfr6 libmpfr-dev
- name: "Install Racket"
uses: Bogdanp/[email protected]
with:
version: "8.11"
- name: Install Rust compiler
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: actions/checkout@master
- name: "Install dependencies"
run: make install
- name: "Run (1st time)"
run: racket -l herbie report --threads yes --seed 1 bench/hamming/rearrangement.fpcore graphs0
- name: "Run (2nd time)"
run: racket -l herbie report --threads yes --seed 1 bench/hamming/rearrangement.fpcore graphs1
- name: "Check for determinism"
run: racket infra/diff.rkt graphs0 graphs1