d2/make.sh
Anmol Sethi cd11c8fa5f
ci: Fix daily
Preinstall playwright deps to avoid conflict between test and race.
2023-07-31 21:24:52 -07:00

21 lines
444 B
Bash
Executable file

#!/bin/sh
set -eu
if [ ! -e "$(dirname "$0")/ci/sub/.git" ]; then
set -x
git submodule update --init
set +x
fi
. "$(dirname "$0")/ci/sub/lib.sh"
PATH="$(cd -- "$(dirname "$0")" && pwd)/ci/sub/bin:$PATH"
cd -- "$(dirname "$0")"
if ! go version | grep -qF '1.20'; then
echoerr "You need go 1.20 to build d2."
exit 1
fi
if [ "${DAILY-}" ]; then
export FORCE_COLOR=1
npx playwright@1.31.1 install --with-deps chromium
fi
_make "$@"