3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-12 12:08:19 +00:00

Enable functional tests on public CI

This commit is contained in:
Miodrag Milanovic 2024-09-12 11:04:00 +02:00
parent 6937241012
commit 632f3880b6
2 changed files with 13 additions and 1 deletions

View file

@ -9,12 +9,14 @@ runs:
run: |
sudo apt-get update
sudo apt-get install gperf build-essential bison flex libreadline-dev gawk tcl-dev libffi-dev git graphviz xdot pkg-config python3 libboost-system-dev libboost-python-dev libboost-filesystem-dev zlib1g-dev
pip3 install pytest
- name: Install macOS Dependencies
if: runner.os == 'macOS'
shell: bash
run: |
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install bison flex gawk libffi pkg-config bash autoconf llvm
pip3 install -U pytest --break-system-packages
- name: Linux runtime environment
if: runner.os == 'Linux'

View file

@ -100,6 +100,16 @@ jobs:
cd iverilog
echo "IVERILOG_GIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Get vcd2fst
shell: bash
run: |
git clone https://github.com/mmicko/libwave.git
mkdir -p ${{ github.workspace }}/.local/
cd libwave
cmake . -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/.local
make -j$procs
make install
- name: Cache iverilog
id: cache-iverilog
uses: actions/cache@v4
@ -135,7 +145,7 @@ jobs:
- name: Run tests
shell: bash
run: |
make -j$procs test TARGETS= EXTRA_TARGETS= CONFIG=$CC
make -j$procs test TARGETS= EXTRA_TARGETS= CONFIG=$CC ENABLE_FUNCTIONAL_TESTS=1
- name: Report errors
if: ${{ failure() }}