blob: 401589cd87ca6e7239b21303d06f693a963aba6a (
plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
name: Build and run tests
on: [push, pull_request]
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install g++ gperf build-essential bison flex libreadline-dev gawk tcl-dev libffi-dev git graphviz xdot pkg-config python python3 libboost-system-dev libboost-python-dev libboost-filesystem-dev zlib1g-dev
- name: Get iverilog
run: |
git clone git://github.com/steveicarus/iverilog.git
- name: Cache iverilog
id: cache-iverilog
uses: actions/cache@v2
with:
path: iverilog-bin
key: ${{ runner.os }}-${{ hashFiles('iverilog/.git/refs/heads/master') }}
- name: Build iverilog
if: steps.cache-iverilog.outputs.cache-hit != 'true'
run: |
mkdir iverilog-bin
cd iverilog
autoconf
CC=gcc CXX=g++ ./configure --prefix=$PWD/../iverilog-bin
make -j$(nproc)
make install
- name: Build yosys
run: |
make -j$(nproc)
- name: Run tests
run: |
PATH=$PWD/iverilog-bin/bin:$PATH make -j$(nproc) test
test-osx:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
brew update
brew tap Homebrew/bundle
brew bundle
- name: Get iverilog
run: |
git clone git://github.com/steveicarus/iverilog.git
- name: Cache iverilog
id: cache-iverilog
uses: actions/cache@v2
with:
path: iverilog-bin
key: ${{ runner.os }}-${{ hashFiles('iverilog/.git/refs/heads/master') }}
- name: Build iverilog
if: steps.cache-iverilog.outputs.cache-hit != 'true'
run: |
export PATH="$(brew --prefix bison)/bin:$PATH"
mkdir iverilog-bin
cd iverilog
autoconf
CC=gcc CXX=g++ ./configure --prefix=$PWD/../iverilog-bin
make -j$(sysctl -n hw.ncpu)
make install
- name: Build yosys
run: |
export PATH="$(brew --prefix bison)/bin:$PATH"
make -j$(sysctl -n hw.ncpu)
- name: Run tests
run: |
PATH=$PWD/iverilog-bin/bin:$PATH make -j$(sysctl -n hw.ncpu) test
|