feat: add experimental VHDL support #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: [push, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install iverilog & ghdl | |
shell: bash | |
run: sudo apt-get update && sudo apt-get install -y iverilog ghdl-llvm | |
# Set Python up and install cocotb | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install Python packages | |
shell: bash | |
run: pip install -r test/requirements.txt | |
- name: Checkout tt-support-tools repo | |
uses: actions/checkout@v4 | |
with: | |
repository: TinyTapeout/tt-support-tools | |
path: tt | |
ref: tt09 | |
- name: Install tt-support-tools dependencies | |
shell: bash | |
run: pip install -r tt/requirements.txt | |
- name: Run tt_tool.py to transpile .vhdl to .v | |
shell: bash | |
run: ./tt/tt_tool.py | |
- name: Run tests | |
run: | | |
cd test | |
make clean | |
make | |
# make will return success even if the test fails, so check for failure in the results.xml | |
! grep failure results.xml | |
- name: Test Summary | |
uses: test-summary/[email protected] | |
with: | |
paths: "test/results.xml" | |
if: always() | |
- name: upload vcd | |
if: success() || failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-vcd | |
path: | | |
test/tb.vcd | |
test/results.xml |