ci: Increase similarities with LiteX CI.

This commit is contained in:
Florent Kermarrec 2023-05-23 16:41:59 +02:00
parent b452f09df6
commit d8c327b2b1
1 changed files with 8 additions and 4 deletions

View File

@ -13,6 +13,10 @@ jobs:
- name: Setup CCache - name: Setup CCache
uses: hendrikmuhs/ccache-action@v1.2 uses: hendrikmuhs/ccache-action@v1.2
- uses: ghdl/setup-ghdl-ci@master
with:
backend: llvm
# Install Tools # Install Tools
- name: Install Tools - name: Install Tools
run: | run: |
@ -20,7 +24,7 @@ jobs:
sudo apt-get install libevent-dev libjson-c-dev flex bison sudo apt-get install libevent-dev libjson-c-dev flex bison
sudo apt-get install libfl-dev libfl2 zlib1g-dev sudo apt-get install libfl-dev libfl2 zlib1g-dev
- name: Set up Python 3.9 - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: "3.9" python-version: "3.9"
@ -35,10 +39,10 @@ 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 GCC Toolchains
- name: Install RISC-V GCC - name: Install GCC Toolchains
run: | run: |
sudo python3 litex_setup.py --gcc=riscv sudo python3 litex_setup.py --gcc=riscv