mach/dev/update-subrepos.sh
Stephen Gutekanst e276648c3f dev: use HTTPS subrepo remotes in CI
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-12 17:24:48 -07:00

14 lines
482 B
Bash
Executable file

#!/usr/bin/env bash
set -exuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"/..
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 fetch mach-glfw
git fetch mach-gpu-dawn