ci: Increase similarities with LiteDRAM CI.

This commit is contained in:
Florent Kermarrec 2021-10-26 12:15:13 +02:00
parent d6ce5d3afa
commit 81da5c1bb6
1 changed files with 7 additions and 9 deletions

View File

@ -3,7 +3,7 @@ name: ci
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
regression-test: build:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
# Checkout Repository # Checkout Repository
@ -13,14 +13,13 @@ jobs:
# Install Tools # Install Tools
- name: Install Tools - name: Install Tools
run: | run: |
sudo apt-get install wget build-essential python3 sudo apt-get install wget build-essential python3 ninja-build
sudo apt-get install verilator libevent-dev libjson-c-dev sudo apt-get install verilator libevent-dev libjson-c-dev
pip3 install setuptools pip3 install setuptools
pip3 install requests pip3 install requests
pip3 install meson
pip3 install ninja
pip3 install nmigen-yosys
pip3 install pexpect pip3 install pexpect
pip3 install meson
pip3 install nmigen-yosys
# Install (n)Migen / LiteX / Cores # Install (n)Migen / LiteX / Cores
- name: Install LiteX - name: Install LiteX
@ -33,9 +32,8 @@ jobs:
run: | run: |
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
python3 litex_setup.py gcc python3 litex_setup.py gcc
ls $PWD/../riscv64-*/bin/ sudo mkdir /usr/local/riscv
export PATH=$PATH:$(echo $PWD/../riscv64-*/bin/) sudo cp -r $PWD/../riscv64-*/* /usr/local/riscv
riscv64-unknown-elf-gcc --version
# Install Project # Install Project
- name: Install Project - name: Install Project
@ -45,5 +43,5 @@ jobs:
- name: Run Tests - name: Run Tests
run: | run: |
export GITHUB_ACTIONS=1 export GITHUB_ACTIONS=1
export PATH=$PATH:$(echo $PWD/../riscv64-*/bin/) export PATH=/usr/local/riscv/bin:$PATH
python3 setup.py test python3 setup.py test