ci: Update.

This commit is contained in:
Florent Kermarrec 2023-02-27 12:26:06 +01:00
parent 150d46edef
commit 457f0875db
1 changed files with 7 additions and 8 deletions

View File

@ -4,11 +4,14 @@ on: [push, pull_request]
jobs: jobs:
build: build:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
# Checkout Repository # Checkout Repository
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Setup CCache
uses: hendrikmuhs/ccache-action@v1.2
# Install Tools # Install Tools
- name: Install Tools - name: Install Tools
@ -23,15 +26,12 @@ jobs:
- name: Install LiteX - name: Install LiteX
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 init install --user python3 litex_setup.py --init --install --user
# Install RISC-V GCC # Install RISC-V GCC
- name: Install RISC-V GCC - name: Install RISC-V GCC
run: | run: |
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py sudo python3 litex_setup.py --gcc=riscv
python3 litex_setup.py gcc
sudo mkdir /usr/local/riscv
sudo cp -r $PWD/../riscv64-*/* /usr/local/riscv
# Install Project # Install Project
- name: Install Project - name: Install Project
@ -40,5 +40,4 @@ jobs:
# Test # Test
- name: Run Tests - name: Run Tests
run: | run: |
export PATH=/usr/local/riscv/bin:$PATH
python3 setup.py test python3 setup.py test