wip #18
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - "*" # matches every branch that doesn't contain a '/' | |
| - "*/*" # matches every branch containing a single '/' | |
| - "**" # matches every branch | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: cimg/python:3.11 | |
| options: --user root | |
| steps: | |
| - name: Checkout repository and submodules | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install system dependencies | |
| run: | | |
| apt-get update | |
| apt-get install -y pandoc ghdl gtkwave verilator python3-pip texlive-latex-extra latexmk | |
| - name: Install Python dependencies | |
| run: pip install -e . | |
| - name: Show Python version | |
| run: python --version | |
| - name: Run 'make gen' | |
| run: make gen | |
| - name: Run 'make compile_ghdl' | |
| run: make compile_ghdl | |
| - name: Run 'make compile_verilator' | |
| run: make compile_verilator | |
| - name: Run 'make test_c' | |
| run: make test_c | |
| - name: Run 'make test_rst' | |
| run: make test_rst |