scripts: gha: psvita: lock vitaGL revision, use --depth=1 in git clone

This commit is contained in:
Alibek Omarov 2023-03-20 16:51:13 +03:00
parent eac8c116a8
commit 1df1fc32df
1 changed files with 7 additions and 6 deletions

View File

@ -6,12 +6,14 @@ echo "Downloading vitasdk..."
export VITASDK=/usr/local/vitasdk
VITAGL_SRCREV="c52391378c2bf1a00a0194c4fd88c35492d104b8" # lock vitaGL version to avoid compilation errors
install_package()
{
./vdpm $1 || exit 1
}
git clone https://github.com/vitasdk/vdpm.git || exit 1
git clone https://github.com/vitasdk/vdpm.git --depth=1 || exit 1
pushd vdpm
./bootstrap-vitasdk.sh || exit 1
install_package taihen
@ -24,18 +26,17 @@ popd
echo "Downloading vitaGL..."
git clone https://github.com/Rinnegatamante/vitaGL.git || exit 1
git clone https://github.com/Rinnegatamante/vitaGL.git -b "$VITAGL_SRCREV" --depth=1 || exit 1
echo "Downloading vitaGL fork of SDL2..."
git clone https://github.com/Northfear/SDL.git || exit 1
git clone https://github.com/Northfear/SDL.git --depth=1 || exit 1
echo "Downloading vita-rtld..."
git clone https://github.com/fgsfdsfgs/vita-rtld.git || exit 1
git clone https://github.com/fgsfdsfgs/vita-rtld.git --depth=1 || exit 1
echo "Downloading HLSDK..."
rm -rf hlsdk-xash3d hlsdk-portable
# TODO: change to FWGS/hlsdk-portable.git when changes are merged in
git clone --recursive https://github.com/fgsfdsfgs/hlsdk-xash3d || exit 1
git clone --recursive https://github.com/FWGS/hlsdk-portable || exit 1