Skip to content

Commit

Permalink
Configure GitHub Actions, enable CI for testbenches
Browse files Browse the repository at this point in the history
  • Loading branch information
augustofg committed Sep 20, 2024
1 parent 51ad3af commit 272e58b
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
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

0 comments on commit 272e58b

Please sign in to comment.