-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a79e36e
commit eae2f4b
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: MAIN | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential bison flex libreadline-dev gawk tcl-dev libffi-dev git \ | ||
graphviz xdot pkg-config python3 python3-pip libboost-system-dev \ | ||
libboost-python-dev libboost-context-dev autoconf gperf | ||
- name: Install Icarus Verilog | ||
run: | | ||
git clone https://github.com/steveicarus/iverilog.git | ||
cd iverilog | ||
sh autoconf.sh | ||
./configure | ||
make | ||
sudo make install | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install Python dependencies | ||
run: pip install cocotb | ||
|
||
- name: Add cocotbext to PYTHONPATH and run tests | ||
env: | ||
PYTHONPATH: ${{ github.workspace }} | ||
run: make -C tests |