litescope/.github/workflows/ci.yml

44 lines
1.0 KiB
YAML
Raw Normal View History

name: ci
on: [push, pull_request]
jobs:
build:
2023-02-27 06:26:06 -05:00
runs-on: ubuntu-22.04
steps:
# Checkout Repository
- name: Checkout
2023-02-27 06:26:06 -05:00
uses: actions/checkout@v3
- name: Setup CCache
uses: hendrikmuhs/ccache-action@v1.2
# Install Tools
- name: Install Tools
run: |
2022-01-05 03:24:43 -05:00
sudo apt-get install wget build-essential python3 ninja-build
pip3 install setuptools
2020-12-17 10:28:55 -05:00
pip3 install requests
2022-01-05 03:24:43 -05:00
pip3 install pexpect
pip3 install meson
# Install (n)Migen / LiteX / Cores
- name: Install LiteX
run: |
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
2023-02-27 06:26:06 -05:00
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: |
2023-02-27 06:26:06 -05:00
sudo python3 litex_setup.py --gcc=riscv
2020-12-17 10:28:55 -05:00
# Install Project
- name: Install Project
run: python3 setup.py develop --user
# Test
- name: Run Tests
2020-12-17 10:28:55 -05:00
run: |
python3 setup.py test