From 457f0875db0c1a0ff0e20659fe81b5bf696875d4 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 27 Feb 2023 12:26:06 +0100 Subject: [PATCH] ci: Update. --- .github/workflows/ci.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c3d1c0..e93a406 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,11 +4,14 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: # Checkout Repository - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + + - name: Setup CCache + uses: hendrikmuhs/ccache-action@v1.2 # Install Tools - name: Install Tools @@ -23,15 +26,12 @@ jobs: - name: Install LiteX run: | 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 - 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 + sudo python3 litex_setup.py --gcc=riscv # Install Project - name: Install Project @@ -40,5 +40,4 @@ jobs: # Test - name: Run Tests run: | - export PATH=/usr/local/riscv/bin:$PATH python3 setup.py test