2020-11-24 08:17:38 -05:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2021-10-24 06:08:58 -04:00
|
|
|
regression-test:
|
2020-11-24 08:17:38 -05:00
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
# Checkout Repository
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
# Install Tools
|
|
|
|
- name: Install Tools
|
|
|
|
run: |
|
|
|
|
sudo apt-get install wget build-essential python3
|
2021-10-24 06:08:58 -04:00
|
|
|
sudo apt-get install verilator libevent-dev libjson-c-dev
|
2020-11-24 08:17:38 -05:00
|
|
|
pip3 install setuptools
|
|
|
|
pip3 install requests
|
2021-09-27 10:10:01 -04:00
|
|
|
pip3 install meson
|
2021-10-24 06:08:58 -04:00
|
|
|
pip3 install ninja
|
|
|
|
pip3 install nmigen-yosys
|
|
|
|
pip3 install pexpect
|
2020-11-24 08:17:38 -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 RISC-V GCC
|
|
|
|
- name: Install RISC-V GCC
|
|
|
|
run: |
|
|
|
|
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
|
|
|
|
python3 litex_setup.py gcc
|
|
|
|
ls $PWD/../riscv64-*/bin/
|
|
|
|
export PATH=$PATH:$(echo $PWD/../riscv64-*/bin/)
|
|
|
|
riscv64-unknown-elf-gcc --version
|
|
|
|
|
|
|
|
# Install Project
|
|
|
|
- name: Install Project
|
|
|
|
run: python3 setup.py develop --user
|
|
|
|
|
|
|
|
# Test
|
|
|
|
- name: Run Tests
|
|
|
|
run: |
|
|
|
|
export GITHUB_ACTIONS=1
|
2021-10-24 06:08:58 -04:00
|
|
|
export PATH=$PATH:$(echo $PWD/../riscv64-*/bin/)
|
2020-11-24 08:17:38 -05:00
|
|
|
python3 setup.py test
|