Skip to content

Commit f52a474

Browse files
author
Joao Victor Santos
committed
Intitial Continous Integration
1 parent 8a03092 commit f52a474

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Run all testbenches
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
8+
jobs:
9+
run_testbenches:
10+
runs-on: ubuntu-latest
11+
container:
12+
image: ghcr.io/lnls-dig/gw-tb-toolchain:latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
submodules: true
17+
- name: Run GHDL testbenches
18+
run: cd hdl/testbench && ./ghdl-ci.sh
19+
- name: Run NVC testbenches
20+
run: cd hdl/testbench && ./nvc-ci.sh

hdl/testbench/ghdl-ci.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
if ls ./*/ghdl/ 1> /dev/null 2>&1; then
6+
for tb in ./*/ghdl/; do
7+
echo "Testbench ${tb}"
8+
cd "$tb"
9+
hdlmake
10+
make clean
11+
make
12+
cd ../../
13+
done
14+
fi

hdl/testbench/nvc-ci.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
if ls ./*/nvc/ 1> /dev/null 2>&1; then
6+
for tb in ./*/nvc/; do
7+
echo "Testbench ${tb}"
8+
cd "$tb"
9+
hdlmake
10+
make clean
11+
make
12+
cd ../../
13+
done
14+
fi

0 commit comments

Comments
 (0)