aboutsummaryrefslogtreecommitdiffstats
path: root/.github/ci/build_gowin.sh
blob: 430cd2b046fba7f0899c3160ac7ee29596761d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

function get_dependencies {
    pip3 install apycula==${APYCULA_REVISION}
}

function build_nextpnr {
    mkdir build
    pushd build
    cmake .. -DARCH=gowin -DWERROR=on -DBUILD_GUI=on -DUSE_IPO=off
    make nextpnr-gowin -j`nproc`
    popd
}

function run_tests {
    :
}

function run_archcheck {
    pushd build
    ./nextpnr-gowin --device GW1N-UV4LQ144C6/I5 --test
    popd
}