2020-11-24 08:01:23 -05:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-10-14 12:15:09 -04:00
|
|
|
runs-on: ubuntu-20.04
|
2020-11-24 08:01:23 -05:00
|
|
|
steps:
|
|
|
|
# Checkout Repository
|
|
|
|
- name: Checkout
|
2023-09-21 05:42:05 -04:00
|
|
|
uses: actions/checkout@v4
|
2020-11-24 08:01:23 -05:00
|
|
|
|
|
|
|
# Install Tools
|
|
|
|
- name: Install Tools
|
|
|
|
run: |
|
2023-09-17 17:50:04 -04:00
|
|
|
sudo apt-get install wget build-essential
|
|
|
|
|
|
|
|
- name: Set up Python 3.9
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: "3.9"
|
|
|
|
cache: "pip"
|
|
|
|
cache-dependency-path: "setup.py"
|
|
|
|
|
|
|
|
- name: Install Python dependencies
|
|
|
|
run: |
|
|
|
|
python3 -m pip install setuptools requests pexpect meson
|
2020-11-24 08:01:23 -05:00
|
|
|
|
|
|
|
# Install (n)Migen / LiteX / Cores
|
|
|
|
- name: Install LiteX
|
|
|
|
run: |
|
|
|
|
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
|
|
|
|
python3 litex_setup.py init install --user
|
|
|
|
|
|
|
|
# Install Project
|
|
|
|
- name: Install Project
|
|
|
|
run: python3 setup.py develop --user
|
|
|
|
|
|
|
|
# Test
|
|
|
|
- name: Run Tests
|
|
|
|
run: python3 setup.py test
|