From f78400aa29cb328641fb28e1aba097afcb25c16b Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 17 Dec 2020 16:28:55 +0100 Subject: [PATCH] ci: install RISC-V GCC. --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 797bc3a..9f8f33c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,7 @@ jobs: run: | sudo apt-get install wget build-essential python3 pip3 install setuptools + pip3 install requests # Install (n)Migen / LiteX / Cores - name: Install LiteX @@ -22,10 +23,20 @@ jobs: 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 + 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 - run: python3 setup.py test + run: | + export PATH=/usr/local/riscv/bin:$PATH + python3 setup.py test