chore(ci): prefer shared host cache /home/dev/godot-cache, fallback to download
CI / Export Linux (push) Failing after 8m9s
CI / Export Windows (push) Failing after 8m11s
Test Suite / Unit Tests (GUT) (push) Successful in 59s
Test Suite / Code Style Check (push) Failing after 39s
Test Suite / Integration Tests (push) Failing after 4m18s
CI / Create Release (push) Has been skipped
Test Suite / Security Scan (push) Failing after 5m35s
CI / Export Linux (push) Failing after 8m9s
CI / Export Windows (push) Failing after 8m11s
Test Suite / Unit Tests (GUT) (push) Successful in 59s
Test Suite / Code Style Check (push) Failing after 39s
Test Suite / Integration Tests (push) Failing after 4m18s
CI / Create Release (push) Has been skipped
Test Suite / Security Scan (push) Failing after 5m35s
This commit is contained in:
+30
-12
@@ -25,20 +25,29 @@ jobs:
|
|||||||
ssh-key: ${{ secrets.TEKTON_SSH_KEY }}
|
ssh-key: ${{ secrets.TEKTON_SSH_KEY }}
|
||||||
ssh-strict: false
|
ssh-strict: false
|
||||||
|
|
||||||
- name: Setup Godot
|
- name: Setup Godot from shared cache
|
||||||
run: |
|
run: |
|
||||||
wget -nv http://192.168.0.114:9009/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip \
|
set -e
|
||||||
|| wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip
|
GODOT_SRC="/home/dev/godot-cache/Godot_v4.6-stable_linux.x86_64.zip"
|
||||||
|
if [ -f "$GODOT_SRC" ]; then
|
||||||
|
cp -a "$GODOT_SRC" ./godot.zip
|
||||||
|
else
|
||||||
|
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip
|
||||||
|
fi
|
||||||
unzip -q godot.zip
|
unzip -q godot.zip
|
||||||
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
||||||
chmod +x /usr/local/bin/godot
|
chmod +x /usr/local/bin/godot
|
||||||
|
|
||||||
- name: Install export templates
|
- name: Install export templates from shared cache
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable
|
mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable
|
||||||
wget -nv http://192.168.0.114:9009/Godot_v4.6-stable_export_templates.tpz -O /tmp/godot-templates.tpz \
|
TPL_SRC="/home/dev/godot-cache/Godot_v4.6-stable_export_templates.tpz"
|
||||||
|| wget -nv https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz -O /tmp/godot-templates.tpz
|
if [ -f "$TPL_SRC" ]; then
|
||||||
|
cp -a "$TPL_SRC" /tmp/godot-templates.tpz
|
||||||
|
else
|
||||||
|
wget -nv https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz -O /tmp/godot-templates.tpz
|
||||||
|
fi
|
||||||
unzip -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
unzip -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
||||||
if [ -d /tmp/godot-templates/templates ]; then
|
if [ -d /tmp/godot-templates/templates ]; then
|
||||||
cp -a /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/ 2>/dev/null || true
|
cp -a /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/ 2>/dev/null || true
|
||||||
@@ -74,20 +83,29 @@ jobs:
|
|||||||
ssh-key: ${{ secrets.TEKTON_SSH_KEY }}
|
ssh-key: ${{ secrets.TEKTON_SSH_KEY }}
|
||||||
ssh-strict: false
|
ssh-strict: false
|
||||||
|
|
||||||
- name: Setup Godot
|
- name: Setup Godot from shared cache
|
||||||
run: |
|
run: |
|
||||||
wget -nv http://192.168.0.114:9009/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip \
|
set -e
|
||||||
|| wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip
|
GODOT_SRC="/home/dev/godot-cache/Godot_v4.6-stable_linux.x86_64.zip"
|
||||||
|
if [ -f "$GODOT_SRC" ]; then
|
||||||
|
cp -a "$GODOT_SRC" ./godot.zip
|
||||||
|
else
|
||||||
|
wget -q https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_linux.x86_64.zip -O godot.zip
|
||||||
|
fi
|
||||||
unzip -q godot.zip
|
unzip -q godot.zip
|
||||||
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
mv Godot_v4.6-stable_linux.x86_64 /usr/local/bin/godot
|
||||||
chmod +x /usr/local/bin/godot
|
chmod +x /usr/local/bin/godot
|
||||||
|
|
||||||
- name: Install export templates
|
- name: Install export templates from shared cache
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable
|
mkdir -v -p ~/.local/share/godot/export_templates/4.6.stable
|
||||||
wget -nv http://192.168.0.114:9009/Godot_v4.6-stable_export_templates.tpz -O /tmp/godot-templates.tpz \
|
TPL_SRC="/home/dev/godot-cache/Godot_v4.6-stable_export_templates.tpz"
|
||||||
|| wget -nv https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz -O /tmp/godot-templates.tpz
|
if [ -f "$TPL_SRC" ]; then
|
||||||
|
cp -a "$TPL_SRC" /tmp/godot-templates.tpz
|
||||||
|
else
|
||||||
|
wget -nv https://github.com/godotengine/godot-builds/releases/download/4.6-stable/Godot_v4.6-stable_export_templates.tpz -O /tmp/godot-templates.tpz
|
||||||
|
fi
|
||||||
unzip -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
unzip -o -q /tmp/godot-templates.tpz -d /tmp/godot-templates
|
||||||
if [ -d /tmp/godot-templates/templates ]; then
|
if [ -d /tmp/godot-templates/templates ]; then
|
||||||
cp -a /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/ 2>/dev/null || true
|
cp -a /tmp/godot-templates/templates/* ~/.local/share/godot/export_templates/4.6.stable/ 2>/dev/null || true
|
||||||
|
|||||||
Reference in New Issue
Block a user