|
1 | | -name: Unit Tests |
| 1 | +name: Unit, Integration, and Plugin tests |
2 | 2 |
|
3 | 3 | on: [push] |
4 | 4 |
|
| 5 | +env: |
| 6 | + RUST_BACKTRACE: full |
| 7 | + |
5 | 8 | jobs: |
6 | | - build: |
| 9 | + unit-tests: |
| 10 | + name: "Unit Tests" |
7 | 11 | runs-on: ubuntu-latest |
8 | 12 | steps: |
9 | 13 | - name: "Install Packages" |
|
14 | 18 | - name: "Install dependencies" |
15 | 19 | run: raco pkg install --name herbie --no-cache --auto src/ |
16 | 20 | - run: raco test src/ infra/ |
| 21 | + |
| 22 | + hamming: |
| 23 | + name: "Integration tests (Hamming)" |
| 24 | + runs-on: ubuntu-latest |
| 25 | + strategy: |
| 26 | + matrix: |
| 27 | + racket-version: [ '7.5', '7.6', '7.7' ] |
| 28 | + precision: [ 'binary32', 'binary64' ] |
| 29 | + steps: |
| 30 | + - name: "Install Packages" |
| 31 | + run: sudo apt-get install -y libmpfr6 libmpfr-dev |
| 32 | + - name: "Install Racket" |
| 33 | + |
| 34 | + with: |
| 35 | + version: ${{ matrix.racket-version }} |
| 36 | + - uses: actions/checkout@master |
| 37 | + - name: "Install dependencies" |
| 38 | + run: raco pkg install --name herbie --no-cache --auto src/ |
| 39 | + - run: racket infra/travis.rkt --precision ${{ matrix.precision }} --seed 0 bench/hamming/ |
| 40 | + |
| 41 | + softposit: |
| 42 | + name: "Plugin tests (Posits)" |
| 43 | + runs-on: ubuntu-latest |
| 44 | + needs: [ 'hamming' ] |
| 45 | + steps: |
| 46 | + - name: "Install Packages" |
| 47 | + run: sudo apt-get install -y libmpfr6 libmpfr-dev |
| 48 | + - name: "Install Racket" |
| 49 | + |
| 50 | + - uses: actions/checkout@master |
| 51 | + - name: "Install dependencies" |
| 52 | + run: raco pkg install --name herbie --no-cache --auto src/ |
| 53 | + - name: "Check out softposit-herbie master" |
| 54 | + uses: actions/checkout@master |
| 55 | + with: |
| 56 | + repository: herbie-fp/softposit-herbie |
| 57 | + path: plugin |
| 58 | + - name: "Install SoftPosit support" |
| 59 | + run: raco pkg install --no-cache --auto --name softposit-herbie plugin/ |
| 60 | + - run: racket infra/travis.rkt --precision posit16 --seed 0 plugin/bench/posits.fpcore |
| 61 | + |
| 62 | + complex: |
| 63 | + name: "Plugin tests (Complex)" |
| 64 | + runs-on: ubuntu-latest |
| 65 | + needs: [ 'hamming' ] |
| 66 | + steps: |
| 67 | + - name: "Install Packages" |
| 68 | + run: sudo apt-get install -y libmpfr6 libmpfr-dev |
| 69 | + - name: "Install Racket" |
| 70 | + |
| 71 | + - uses: actions/checkout@master |
| 72 | + - name: "Install dependencies" |
| 73 | + run: raco pkg install --name herbie --no-cache --auto src/ |
| 74 | + - name: "Check out complex-herbie master" |
| 75 | + uses: actions/checkout@master |
| 76 | + with: |
| 77 | + repository: herbie-fp/complex-herbie |
| 78 | + path: plugin |
| 79 | + - name: "Install Complex support" |
| 80 | + run: raco pkg install --no-cache --auto --name complex-herbie plugin/ |
| 81 | + - run: racket infra/travis.rkt --seed 0 plugin/test.fpcore |
0 commit comments