diff options
author | gatecat <gatecat@ds0.me> | 2022-04-08 14:05:03 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2022-04-08 18:42:39 +0100 |
commit | 92a58a2631a30ac3f4c0291ecd1f2f01a912b9e9 (patch) | |
tree | af4d4919e27a49d01c1c8607c817d07644e22303 /.github/ci/build_ice40.sh | |
parent | 49f178ed94b5fad00d25dbd12adea0bf4732f803 (diff) | |
download | nextpnr-92a58a2631a30ac3f4c0291ecd1f2f01a912b9e9.tar.gz nextpnr-92a58a2631a30ac3f4c0291ecd1f2f01a912b9e9.tar.bz2 nextpnr-92a58a2631a30ac3f4c0291ecd1f2f01a912b9e9.zip |
ci: Restructure and move entirely to GH actions from Cirrus
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to '.github/ci/build_ice40.sh')
-rw-r--r-- | .github/ci/build_ice40.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/ci/build_ice40.sh b/.github/ci/build_ice40.sh new file mode 100644 index 00000000..ea9234cc --- /dev/null +++ b/.github/ci/build_ice40.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +function get_dependencies { + : +} + +function build_nextpnr { + mkdir build + pushd build + cmake .. -DARCH=ice40 -DICESTORM_INSTALL_PREFIX=${GITHUB_WORKSPACE}/.icestorm -DWERROR=on -DBUILD_TESTS=on -DBUILD_GUI=on + make nextpnr-ice40 nextpnr-ice40-test -j`nproc` + popd +} + +function run_tests { + export PATH=${GITHUB_WORKSPACE}/.yosys/bin:${GITHUB_WORKSPACE}/.icestorm/bin:$PATH + (cd build && ./nextpnr-ice40-test) + (export NEXTPNR=$(pwd)/build/nextpnr-ice40 && cd ice40/smoketest/attosoc && ./smoketest.sh) + make -j $(nproc) -C tests/ice40/regressions NPNR=$(pwd)/build/nextpnr-ice40 +} + +function run_archcheck { + pushd build + ./nextpnr-ice40 --hx8k --package ct256 --test + ./nextpnr-ice40 --up5k --package sg48 --test + popd +} |