litescope/.github/workflows/ci.yml

43 lines
1.1 KiB
YAML
Raw Normal View History

name: ci
on: [push, pull_request]
jobs:
build:
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
pip3 install setuptools
2020-12-17 10:28:55 -05:00
pip3 install requests
# 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
2020-12-17 10:28:55 -05:00
# 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
sudo mkdir /usr/local/riscv
sudo cp -r $PWD/../riscv64-*/* /usr/local/riscv
# Install Project
- name: Install Project
run: python3 setup.py develop --user
# Test
- name: Run Tests
2020-12-17 10:28:55 -05:00
run: |
export PATH=/usr/local/riscv/bin:$PATH
python3 setup.py test