-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.44 KB
/
lava-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: Lava CI
on: [push]
defaults:
run:
shell: bash
jobs:
linux:
name: Test Verilator
runs-on: ubuntu-24.04
timeout-minutes:
60
continue-on-error: ${{ matrix.allow-failure }}
strategy:
matrix:
include:
- compiler: ghc-9.8.2
compilerKind: ghc
compilerVersion: 9.8.2
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.4.8
compilerKind: ghc
compilerVersion: 9.4.8
setup-method: ghcup
allow-failure: false
fail-fast: false
steps:
- name: Install GHC, cabal and verilator.
run: |
export GHCUP_INSTALL_BASE_PREFIX=$HOME
export PATH=$HOME/.ghcup/bin:$PATH
mkdir -p "$HOME/.ghcup/bin"
sudo chmod a+x "$HOME/.ghcup/bin/ghcup"
ghcup install ghc ${{ matrix.compilerVersion }}
ghcup set ghc ${{ matrix.compilerVersion }}
ghcup install cabal 3.10.3.0
cabal v2-update
sudo apt-get update
sudo apt-get install -y verilator
- name: Checkout Lava GitHub source
uses: actions/checkout@v4
with:
path: source
- name: Build and test Lava
run: |
find . -name "*.cabal"
cd source
cabal v2-test
verilator +1800-2017ext+sv verilator.vlt --binary --trace -Wall --top-module nandgate_sim nandgate.sv nandgate_sim.sv