Skip to content

try to get build working again #4862

try to get build working again

try to get build working again #4862

Workflow file for this run

name: Tool tests
on: [push]
env:
RUST_BACKTRACE: full
jobs:
shell:
name: "The shell tool"
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.7
- name: Install Rust compiler
uses: actions-rs/[email protected]
with:
toolchain: stable
default: true
override: true
components: rustfmt, clippy
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: "Install dependencies"
run: make install
- run: <bench/tutorial.fpcore racket src/herbie.rkt shell >/tmp/out.fpcore
- run: test `grep -c :herbie-time /tmp/out.fpcore` -eq 3
name: "Test that shell output had three :herbie-time lines"
improve:
name: "The improve tool"
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.7
- name: Install Rust compiler
uses: actions-rs/[email protected]
with:
toolchain: stable
default: true
override: true
components: rustfmt, clippy
- uses: actions/checkout@master
- name: "Install dependencies"
run: make install
- run: racket src/herbie.rkt improve bench/tutorial.fpcore /tmp/out.fpcore
- run: test `grep -c :herbie-time /tmp/out.fpcore` -eq 3
name: "Test that improve output had three :herbie-time lines"
report:
name: "The report tool"
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.7
- name: Install Rust compiler
uses: actions-rs/[email protected]
with:
toolchain: stable
default: true
override: true
components: rustfmt, clippy
- uses: actions/checkout@master
- name: "Install dependencies"
run: make install
- run: racket src/herbie.rkt report bench/tutorial.fpcore /tmp/out/
- run: test -d /tmp/out/
name: "Test that report created a directory"
- run: test -f /tmp/out/results.html
name: "Test that report created a results.html"
- run: test -f /tmp/out/results.json
name: "Test that report created a results.json"