-
Notifications
You must be signed in to change notification settings - Fork 88
51 lines (48 loc) · 1.27 KB
/
ci.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
name: CI
on:
pull_request:
jobs:
fma-test:
name: Use testfloat to test hardfloat
runs-on: ubuntu-latest
strategy:
matrix:
chisel: ["3.5.6", "3.6.0", "5.0.0"]
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: cachix/install-nix-action@v19
with:
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
nix_path: nixpkgs=channel:nixos-unstable
- name: run test
run: |
nix --experimental-features 'nix-command flakes' develop -c mill -j 0 'hardfloatdut[${{ matrix.chisel }}].test'
sbt-test:
name: Use testfloat to test hardfloat (with SBT)
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
java: 8
- os: ubuntu-latest
java: 11
- os: ubuntu-latest
java: 17
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: sbt
- name: Install Verilator
run: sudo apt-get install -y verilator gcc
- name: Build and test
shell: bash
run: make test