-
Notifications
You must be signed in to change notification settings - Fork 40
43 lines (35 loc) · 1.03 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: ci
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
steps:
# Checkout Repository
- name: Checkout
uses: actions/checkout@v3
- name: Setup CCache
uses: hendrikmuhs/[email protected]
# Install Tools
- name: Install Tools
run: |
sudo apt-get install wget build-essential python3 ninja-build
pip3 install setuptools
pip3 install requests
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
python3 litex_setup.py --init --install --user
# Install RISC-V GCC
- name: Install RISC-V GCC
run: |
sudo python3 litex_setup.py --gcc=riscv
# Install Project
- name: Install Project
run: python3 setup.py develop --user
# Test
- name: Run Tests
run: |
python3 setup.py test