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