Skip to content

feat(verilator): Support Rust DPI with Verilator #79

feat(verilator): Support Rust DPI with Verilator

feat(verilator): Support Rust DPI with Verilator #79

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
test_verilog:
strategy:
matrix:
os: [ubuntu-latest, macos-15]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Rust Caching
uses: Swatinem/rust-cache@v2
- name: Install verilator
run: make install_verilator
- name: Test
run: |
cd verilog-support/example-project
cargo run --package example-verilog-project --bin tutorial
cargo run --package example-verilog-project --bin tutorial # rerun
cargo run --package example-verilog-project --bin dynamic_model
cargo run --package example-verilog-project --bin dpi_tutorial
test_spade:
strategy:
matrix:
os: [ubuntu-latest, macos-15]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Rust Caching
uses: Swatinem/rust-cache@v2
- name: Install verilator
run: make install_verilator
- name: Install swim
run: cargo install --locked --git https://gitlab.com/spade-lang/swim --rev 639c5d88db76ef3454af4feef842c37985ca1943
- name: Test
run: cd spade-support/example-project && cargo run --package example-spade-project