generated from saji/ecp5-template
23 lines
563 B
YAML
23 lines
563 B
YAML
name: Verilator Unit Tests
|
|
on: [push]
|
|
|
|
defaults:
|
|
run:
|
|
shell: nix develop --command bash {0}
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
- name: Build Testbench Simulator
|
|
run: |
|
|
cmake -B build/ -GNinja
|
|
cmake --build build/
|
|
working-directory: ./sim
|
|
- name: Run Simulator
|
|
run: ./build/sim_test
|
|
working-directory: ./sim
|