aboutsummaryrefslogtreecommitdiffstats
path: root/.github/ci/build_mistral.sh
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-05-15 15:49:02 +0100
committergatecat <gatecat@ds0.me>2021-05-15 15:53:25 +0100
commit6cef569155b5934893109d4ae509c94bdd1dc16a (patch)
treefe4faa1e789d79c092420e7632f5a9345bcb6735 /.github/ci/build_mistral.sh
parent3bb94192d54bfcdbcd58dacd298aa6ff6d9b2bd2 (diff)
downloadnextpnr-6cef569155b5934893109d4ae509c94bdd1dc16a.tar.gz
nextpnr-6cef569155b5934893109d4ae509c94bdd1dc16a.tar.bz2
nextpnr-6cef569155b5934893109d4ae509c94bdd1dc16a.zip
ci: Use GH only for Mistral and fpga-interchange
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to '.github/ci/build_mistral.sh')
-rw-r--r--.github/ci/build_mistral.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/ci/build_mistral.sh b/.github/ci/build_mistral.sh
new file mode 100644
index 00000000..7046462f
--- /dev/null
+++ b/.github/ci/build_mistral.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+function get_dependencies {
+ # Fetch mistral
+ mkdir -p ${MISTRAL_PATH}
+ git clone --recursive https://github.com/Ravenslofty/mistral.git ${MISTRAL_PATH}
+ pushd ${MISTRAL_PATH}
+ git reset --hard ${MISTRAL_REVISION}
+ popd
+}
+
+function build_nextpnr {
+ mkdir build
+ pushd build
+ cmake .. -DARCH=mistral -DMISTRAL_ROOT=${MISTRAL_PATH}
+ make nextpnr-mistral -j`nproc`
+ popd
+}
+
+function run_archcheck {
+ pushd build
+ ./nextpnr-mistral --mistral ${MISTRAL_PATH} --device 5CEBA2F17A7 --test
+ popd
+}