Skip to content

Commit

Permalink
ci: add nvc simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
NikLeberg committed Oct 5, 2024
1 parent cf87fa1 commit f4de255
Showing 1 changed file with 44 additions and 43 deletions.
87 changes: 44 additions & 43 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,57 @@
name: CI

on:
push:
branches:
- main
pull_request:

jobs:
build:
test:
runs-on: ubuntu-latest
container:
image: ghcr.io/nikleberg/dev-base
strategy:
matrix:
simulator:
- questa
- ghdl
- nvc

steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Build Software (for Sim)
run: |
cd sw
make CLI_FLAGS+='-DSIMULATION=1' exe install
- name: Run Simulation (Questa)
run: |
cd build
make questa work.top
make questa test
make clean
- name: Run Simulation (GHDL)
run: |
cd build
make ghdl work.top
make ghdl test
make clean
- name: Build Software (for Syn)
run: |
cd sw
make clean exe install
- name: Run Synthesis
run: |
cd build
make quartus work.top synth
- name: Archive CI Artifacts
uses: actions/upload-artifact@v3
with:
name: ci_artifacts
path: |
sw/main.elf
sw/neorv32_exe.bin
build/output_files/*.sof
- uses: actions/checkout@v3
with:
submodules: true
- name: Build Software
run: |
cd sw
make CLI_FLAGS+='-DSIMULATION=1' exe install
- name: Run Simulation
run: |
cd build
make ${{matrix.simulator}} work.top
make ${{matrix.simulator}} test
synthesize:
runs-on: ubuntu-latest
container:
image: ghcr.io/nikleberg/dev-base
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Build Software
run: |
cd sw
make exe install
- name: Run Synthesis
run: |
cd build
make quartus work.top synth
- name: Archive CI Artifacts
uses: actions/upload-artifact@v3
with:
name: ci_artifacts
path: |
sw/main.elf
sw/neorv32_exe.bin
build/output_files/*.sof

0 comments on commit f4de255

Please sign in to comment.