Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JitheshVijay authored Jun 9, 2024
1 parent a79e36e commit eae2f4b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
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

0 comments on commit eae2f4b

Please sign in to comment.