#!/usr/bin/env bash set -e function show() { printf "\u001b[35m$1\u001b[0m\n" } rm -rf ~/.vmodules/gui/ export VJOBS=1 show "Clone https://github.com/vlang/gui" v retry -- git clone --filter=blob:none --quiet https://github.com/vlang/gui ~/.vmodules/gui/ show "Checkout last known good commit" git -C ~/.vmodules/gui/ checkout b4e3716b042ee6352efedff64c5b92cbf0e81ded show "Check module for syntax and semantic errors" v -shared -check ~/.vmodules/gui show "Execute Tests" v test ~/.vmodules/gui/ show "Compile Examples" v should-compile-all -no-parallel ~/.vmodules/gui/examples/ rm -rf ~/.vmodules/gui/