fomu-workshop/.github/tests.sh

72 lines
1.1 KiB
Bash
Raw Normal View History

#!/bin/bash
set -e
2020-01-03 16:55:19 +00:00
TOOLCHAIN_PATH="$PWD/$(find fomu-toolchain-* -type d -maxdepth 0 2>/dev/null)"
2020-01-03 16:40:56 +00:00
echo "TOOLCHAIN_PATH: $TOOLCHAIN_PATH"
export PATH=$TOOLCHAIN_PATH/bin:$PATH
echo '::group::RISC-V C Example'
(
2020-01-03 16:40:56 +00:00
set -x
cd riscv-blink
make
file riscv-blink.dfu
)
echo '::endgroup::'
echo '::group::RISC-V Zig Example'
2020-05-10 10:55:16 +00:00
(
set -x
cd riscv-zig-blink
zig build
file riscv-zig-blink.bin
)
echo '::endgroup::'
2020-05-10 10:55:16 +00:00
echo '::group::Verilog Blink example'
(
2020-01-03 16:40:56 +00:00
set -x
2020-01-23 10:27:50 +00:00
cd verilog/blink
2020-01-23 10:34:32 +00:00
make FOMU_REV=pvt
file blink.dfu
)
echo '::endgroup::'
echo '::group::Verilog Blink (expanded) example for Hacker board'
(
2020-01-03 16:40:56 +00:00
set -x
2020-01-03 16:55:19 +00:00
cd verilog/blink-expanded
2020-01-03 19:06:48 +00:00
make FOMU_REV=hacker
file blink.dfu
)
echo '::endgroup::'
echo '::group::Verilog Blink (expanded) example for PVT board'
(
2020-01-03 16:40:56 +00:00
set -x
2020-01-03 16:55:19 +00:00
cd verilog/blink-expanded
2020-01-03 19:06:48 +00:00
make FOMU_REV=pvt
file blink.dfu
)
echo '::endgroup::'
echo '::group::LiteX example for Hacker'
(
2020-01-03 16:40:56 +00:00
set -x
cd litex
./workshop.py --board=hacker
file build/gateware/top.dfu
)
echo '::endgroup::'
echo '::group::LiteX example for PVT'
(
2020-01-03 16:40:56 +00:00
set -x
cd litex
./workshop.py --board=pvt
file build/gateware/top.dfu
)
echo '::endgroup::'