-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (54 loc) · 1.48 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
52
53
54
name: CI
on:
push:
pull_request:
schedule:
- cron: '0 8 * * 6'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Notary
uses: actions/checkout@v2
- name: Update apt repository
run: sudo apt-get update -y
- name: Install packages
run: >-
sudo apt-get install
build-essential
clang
bison
flex
libreadline-dev
gawk
tcl-dev
libffi-dev
git
graphviz
xdot
pkg-config
python3
libboost-system-dev
libboost-python-dev
libboost-filesystem-dev
zlib1g-dev
python3-pip
gcc-riscv64-linux-gnu
- name: Install Racket
uses: Bogdanp/[email protected]
with:
architecture: x64
version: stable
variant: regular
- name: Install Yosys
run: .ci/install-yosys.sh
- name: Install bin2coe
run: pip3 install bin2coe
- name: Install rtlv
run: raco pkg install --no-docs --batch --auto https://github.com/anishathalye/rtlv.git
- name: Run verification script
run: |
PATH="$HOME/yosys:$HOME/.local/bin:$PATH"
make verify
# print only a subset of the output to avoid huge log output
racket verify.rkt | awk 'BEGIN { printall=0 } $1 == "cycle" && $2 % 1000 == 0 || printall { print } $1 == "cycle" && $2 == "180000" { printall=1 }'