Skip to content

Commit 5f8dc5a

Browse files
committed
[ci] adjust ghdl, fix #2
1 parent a019468 commit 5f8dc5a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/unittest.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,29 @@ jobs:
2929
env:
3030
GHDL_OPTS: "--std=93c --ieee=synopsys --time-resolution=ps --workdir=./sim/work"
3131
steps:
32-
- uses: actions/checkout@v1
33-
- uses: ghdl/setup-ghdl-ci@nightly
32+
- uses: actions/checkout@v4
33+
- uses: ghdl/setup-ghdl@v1
3434
with:
35+
version: nightly
3536
backend: mcode
3637
- name: Prepare
3738
run: |
3839
ghdl --version
3940
mkdir -p ./sim/work
4041
- name: tiny_uart_inp_filter
4142
run: |
42-
ghdl -a ${GHDL_OPTS} ./hdl/tiny_uart_inp_filter.vhd
43-
ghdl -a ${GHDL_OPTS} ./tb/tiny_uart_inp_filter_tb.vhd
43+
ghdl -a ${GHDL_OPTS} ${GITHUB_WORKSPACE}/hdl/tiny_uart_inp_filter.vhd
44+
ghdl -a ${GHDL_OPTS} ${GITHUB_WORKSPACE}/tb/tiny_uart_inp_filter_tb.vhd
4445
((ghdl -r ${GHDL_OPTS} tiny_uart_inp_filter_tb -gDO_ALL_TEST=True) || if [ $? -ne 0 ]; then echo "[ FAIL ] tiny_uart_inp_filter_tb"; exit 1; fi)
4546
- name: tiny_uart_baud_bit_gen
4647
run: |
47-
ghdl -a ${GHDL_OPTS} ./hdl/tiny_uart_baud_bit_gen.vhd
48-
ghdl -a ${GHDL_OPTS} ./tb/tiny_uart_baud_bit_gen_tb.vhd
48+
ghdl -a ${GHDL_OPTS} ${GITHUB_WORKSPACE}/hdl/tiny_uart_baud_bit_gen.vhd
49+
ghdl -a ${GHDL_OPTS} ${GITHUB_WORKSPACE}/tb/tiny_uart_baud_bit_gen_tb.vhd
4950
((ghdl -r ${GHDL_OPTS} tiny_uart_baud_bit_gen_tb -gDO_ALL_TEST=True) || if [ $? -ne 0 ]; then echo "[ FAIL ] tiny_uart_baud_bit_gen_tb"; exit 1; fi)
5051
- name: tiny_uart
5152
run: |
52-
ghdl -a ${GHDL_OPTS} ./hdl/tiny_uart_inp_filter.vhd
53-
ghdl -a ${GHDL_OPTS} ./hdl/tiny_uart_baud_bit_gen.vhd
54-
ghdl -a ${GHDL_OPTS} ./hdl/tiny_uart.vhd
55-
ghdl -a ${GHDL_OPTS} ./tb/tiny_uart_tb.vhd
53+
ghdl -a ${GHDL_OPTS} ${GITHUB_WORKSPACE}/hdl/tiny_uart_inp_filter.vhd
54+
ghdl -a ${GHDL_OPTS} ${GITHUB_WORKSPACE}/hdl/tiny_uart_baud_bit_gen.vhd
55+
ghdl -a ${GHDL_OPTS} ${GITHUB_WORKSPACE}/hdl/tiny_uart.vhd
56+
ghdl -a ${GHDL_OPTS} ${GITHUB_WORKSPACE}/tb/tiny_uart_tb.vhd
5657
((ghdl -r ${GHDL_OPTS} tiny_uart_tb -gDO_ALL_TEST=True) || if [ $? -ne 0 ]; then echo "[ FAIL ] tiny_uart_tb"; exit 1; fi)

0 commit comments

Comments
 (0)