dev: use HTTPS subrepo remotes in CI

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-02-12 17:24:48 -07:00
parent 51111d9134
commit e276648c3f

View file

@ -2,8 +2,13 @@
set -exuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"/..
git remote add -f mach-glfw git@github.com:hexops/mach-glfw || true
git fetch mach-glfw
if [[ -z "${GITHUB_ACTIONS}" ]]; then
git remote add -f mach-glfw git@github.com:hexops/mach-glfw || true
git remote add -f mach-gpu-dawn git@github.com:hexops/mach-gpu-dawn || true
else
git remote add -f mach-glfw https://github.com/hexops/mach-glfw || true
git remote add -f mach-gpu-dawn https://github.com/hexops/mach-gpu-dawn || true
fi
git remote add -f mach-gpu-dawn git@github.com:hexops/mach-gpu-dawn || true
git fetch mach-glfw
git fetch mach-gpu-dawn