Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure GitHub Actions, enable CI for testbenches #107

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run all testbenches
on:
push:
branches:
- master
pull_request:

jobs:
run_testbenches:
runs-on: ubuntu-latest
container:
image: ghcr.io/lnls-dig/gw-tb-toolchain:latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Run GHDL testbenches
run: cd hdl/testbench && ./ghdl-ci.sh
- name: Run NVC testbenches
run: cd hdl/testbench && ./nvc-ci.sh
14 changes: 14 additions & 0 deletions hdl/testbench/ghdl-ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

set -e

if ls ./*/ghdl/ 1> /dev/null 2>&1; then
for tb in ./*/ghdl/; do
echo "Testbench ${tb}"
cd "$tb"
hdlmake
make clean
make
cd ../../
done
fi
14 changes: 14 additions & 0 deletions hdl/testbench/nvc-ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

set -e

if ls ./*/nvc/ 1> /dev/null 2>&1; then
for tb in ./*/nvc/; do
echo "Testbench ${tb}"
cd "$tb"
hdlmake
make clean
make
cd ../../
done
fi
Loading