ci: fix apt-get update before install, guard template extraction
This commit is contained in:
@@ -26,7 +26,7 @@ jobs:
|
||||
|
||||
- name: Setup Godot (Cached)
|
||||
run: |
|
||||
apt-get install -y zip
|
||||
apt-get update -qq && apt-get install -y -qq unzip curl
|
||||
if [ ! -f /cache/godot_4.7 ]; then
|
||||
echo "Downloading Godot 4.7..."
|
||||
curl -sL -o /tmp/godot.zip "https://github.com/godotengine/godot-builds/releases/download/4.7-stable/Godot_v4.7-stable_linux.x86_64.zip"
|
||||
|
||||
@@ -28,7 +28,7 @@ jobs:
|
||||
|
||||
- name: Setup Godot (Cached)
|
||||
run: |
|
||||
apt-get install -y zip
|
||||
apt-get update -qq && apt-get install -y -qq unzip curl
|
||||
if [ ! -f /cache/godot_4.7 ]; then
|
||||
echo "Downloading Godot 4.7..."
|
||||
curl -sL -o /tmp/godot.zip "https://github.com/godotengine/godot-builds/releases/download/4.7-stable/Godot_v4.7-stable_linux.x86_64.zip"
|
||||
@@ -43,10 +43,12 @@ jobs:
|
||||
curl -sL -o /cache/Godot_v4.7-stable_export_templates.tpz \
|
||||
"https://github.com/godotengine/godot-builds/releases/download/4.7-stable/Godot_v4.7-stable_export_templates.tpz"
|
||||
fi
|
||||
cd ~/.local/share/godot/export_templates/4.7.stable
|
||||
unzip -q -o /cache/Godot_v4.7-stable_export_templates.tpz
|
||||
mv templates/* . 2>/dev/null || true
|
||||
rm -rf templates
|
||||
if [ ! -f ~/.local/share/godot/export_templates/4.7.stable/macos.zip ]; then
|
||||
cd ~/.local/share/godot/export_templates/4.7.stable
|
||||
unzip -q -o /cache/Godot_v4.7-stable_export_templates.tpz
|
||||
mv templates/* . 2>/dev/null || true
|
||||
rm -rf templates
|
||||
fi
|
||||
cd $GITHUB_WORKSPACE
|
||||
mkdir -p build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user