ci: no templates needed for pck export, cache godot binary
Release / Build & Release (push) Successful in 16m34s

This commit is contained in:
god
2026-07-04 22:07:07 +08:00
parent 4c6c8e1587
commit fbca048aba
+1 -14
View File
@@ -28,28 +28,15 @@ jobs:
- name: Setup Godot (Cached) - name: Setup Godot (Cached)
run: | run: |
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..."
apt-get update -qq && apt-get install -y -qq unzip curl
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"
unzip -q -o /tmp/godot.zip -d /cache/ unzip -q -o /tmp/godot.zip -d /cache/
mv /cache/Godot_v4.7-stable_linux.x86_64 /cache/godot_4.7 mv /cache/Godot_v4.7-stable_linux.x86_64 /cache/godot_4.7
fi fi
cp /cache/godot_4.7 /usr/local/bin/godot cp /cache/godot_4.7 /usr/local/bin/godot
chmod +x /usr/local/bin/godot chmod +x /usr/local/bin/godot
mkdir -p ~/.local/share/godot/export_templates/4.7.stable
if [ ! -f /cache/Godot_v4.7-stable_export_templates.tpz ]; then
echo "Downloading templates..."
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
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 mkdir -p build
- name: Generate version.json & bump version - name: Generate version.json & bump version