fix: downgrade workflow godot version to 4.6.3 to match system, fix godot compilation errors
This commit is contained in:
+11
-11
@@ -27,22 +27,22 @@ jobs:
|
||||
- name: Setup Godot (Cached)
|
||||
run: |
|
||||
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"
|
||||
if [ ! -f /cache/godot_4.6.3 ]; then
|
||||
echo "Downloading Godot 4.6.3..."
|
||||
curl -sL -o /tmp/godot.zip "https://github.com/godotengine/godot-builds/releases/download/4.6.3-stable/Godot_v4.6.3-stable_linux.x86_64.zip"
|
||||
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.6.3-stable_linux.x86_64 /cache/godot_4.6.3
|
||||
fi
|
||||
cp /cache/godot_4.7 /usr/local/bin/godot
|
||||
cp /cache/godot_4.6.3 /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
|
||||
mkdir -p ~/.local/share/godot/export_templates/4.6.3.stable
|
||||
if [ ! -f /cache/Godot_v4.6.3-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"
|
||||
curl -sL -o /cache/Godot_v4.6.3-stable_export_templates.tpz \
|
||||
"https://github.com/godotengine/godot-builds/releases/download/4.6.3-stable/Godot_v4.6.3-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
|
||||
cd ~/.local/share/godot/export_templates/4.6.3.stable
|
||||
unzip -q -o /cache/Godot_v4.6.3-stable_export_templates.tpz
|
||||
mv templates/* .
|
||||
rm -rf templates
|
||||
cd $GITHUB_WORKSPACE
|
||||
|
||||
@@ -28,14 +28,14 @@ jobs:
|
||||
|
||||
- name: Setup Godot (Cached)
|
||||
run: |
|
||||
if [ ! -f /cache/godot_4.7 ]; then
|
||||
echo "Downloading Godot 4.7..."
|
||||
if [ ! -f /cache/godot_4.6.3 ]; then
|
||||
echo "Downloading Godot 4.6.3..."
|
||||
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.6.3-stable/Godot_v4.6.3-stable_linux.x86_64.zip"
|
||||
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.6.3-stable_linux.x86_64 /cache/godot_4.6.3
|
||||
fi
|
||||
cp /cache/godot_4.7 /usr/local/bin/godot
|
||||
cp /cache/godot_4.6.3 /usr/local/bin/godot
|
||||
chmod +x /usr/local/bin/godot
|
||||
mkdir -p build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user