2022-11-03 13:54:49 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
set -eu
|
2022-12-01 14:49:48 +00:00
|
|
|
if [ ! -e "$(dirname "$0")/ci/sub/.git" ]; then
|
|
|
|
|
set -x
|
2022-11-29 21:54:11 +00:00
|
|
|
git submodule update --init
|
2022-12-01 14:49:48 +00:00
|
|
|
set +x
|
2022-11-29 21:54:11 +00:00
|
|
|
fi
|
2022-11-03 13:54:49 +00:00
|
|
|
. "$(dirname "$0")/ci/sub/lib.sh"
|
|
|
|
|
PATH="$(cd -- "$(dirname "$0")" && pwd)/ci/sub/bin:$PATH"
|
2022-12-18 20:41:22 +00:00
|
|
|
cd -- "$(dirname "$0")"
|
2022-11-03 13:54:49 +00:00
|
|
|
|
2023-08-30 04:05:59 +00:00
|
|
|
if ! go version | grep -q '1.2[0-9]'; then
|
|
|
|
|
echoerr "You need go 1.2x to build d2."
|
2023-03-01 20:20:37 +00:00
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2025-01-13 04:43:03 +00:00
|
|
|
# if [ "${CI:-}" ]; then
|
|
|
|
|
# export FORCE_COLOR=1
|
|
|
|
|
# npx playwright@1.31.1 install --with-deps chromium
|
|
|
|
|
# fi
|
2022-11-03 13:54:49 +00:00
|
|
|
_make "$@"
|