Disable unreliable Gitea Godot cache steps
Gitea cache restores were inconsistent and cache saves timed out or were rejected as reserved by another job. Remove the cache steps and keep direct 4.7.2 downloads; document the evaluation and when to retry. The workflow is otherwise clean (no .github/ci.yml exists).
This commit is contained in:
1 parent
9b8f513f9f
commit
fbd2ab2cb3
5 files changed
+20
-53
No files matched your search
@@ -7,10 +7,6 @@ on:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
GODOT_VERSION: "4.7.2"
|
||||
GODOT_BIN: /usr/local/bin/godot
|
||||
|
||||
jobs:
|
||||
checks:
|
||||
name: Import + headless tests
|
||||
@@ -21,18 +17,8 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Restore Godot binary cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: /usr/local/bin/godot
|
||||
key: godot-checks-${{ runner.os }}-${{ env.GODOT_VERSION }}-v2
|
||||
|
||||
- name: Install Godot 4.7.2
|
||||
run: |
|
||||
if [ -x /usr/local/bin/godot ]; then
|
||||
godot --version
|
||||
exit 0
|
||||
fi
|
||||
curl -sL -o /tmp/godot.zip \
|
||||
https://github.com/godotengine/godot/releases/download/4.7.2-stable/Godot_v4.7.2-stable_linux.x86_64.zip
|
||||
unzip -qo /tmp/godot.zip -d /tmp/godot-bin
|
||||
@@ -71,38 +57,15 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Restore Godot binary cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: /usr/local/bin/godot
|
||||
key: godot-build-${{ runner.os }}-${{ env.GODOT_VERSION }}-v2
|
||||
|
||||
- name: Restore export templates cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.local/share/godot/export_templates/4.7.2.stable
|
||||
key: godot-templates-${{ runner.os }}-${{ env.GODOT_VERSION }}-v2
|
||||
|
||||
- name: Install Godot 4.7.2 and export templates
|
||||
run: |
|
||||
if [ ! -x /usr/local/bin/godot ]; then
|
||||
curl -sL -o /tmp/godot.zip \
|
||||
https://github.com/godotengine/godot/releases/download/4.7.2-stable/Godot_v4.7.2-stable_linux.x86_64.zip
|
||||
unzip -qo /tmp/godot.zip -d /tmp/godot-bin
|
||||
sudo install /tmp/godot-bin/Godot_v4.7.2-stable_linux.x86_64 /usr/local/bin/godot
|
||||
fi
|
||||
curl -sL -o /tmp/godot.zip \
|
||||
https://github.com/godotengine/godot/releases/download/4.7.2-stable/Godot_v4.7.2-stable_linux.x86_64.zip
|
||||
unzip -qo /tmp/godot.zip -d /tmp/godot-bin
|
||||
sudo install /tmp/godot-bin/Godot_v4.7.2-stable_linux.x86_64 /usr/local/bin/godot
|
||||
godot --version
|
||||
TEMPLATE_DIR="$HOME/.local/share/godot/export_templates/4.7.2.stable"
|
||||
NEEDED="version.txt icudt_godot.dat linux_release.x86_64 windows_release_x86_64.exe macos.zip web_nothreads_release.zip web_dlink_nothreads_release.zip"
|
||||
missing=0
|
||||
for file in $NEEDED; do
|
||||
[ -f "$TEMPLATE_DIR/$file" ] || missing=1
|
||||
done
|
||||
if [ "$missing" -eq 0 ]; then
|
||||
echo "export templates restored from cache"
|
||||
ls "$TEMPLATE_DIR" | head -10
|
||||
exit 0
|
||||
fi
|
||||
curl -sL -o /tmp/templates.tpz \
|
||||
https://github.com/godotengine/godot/releases/download/4.7.2-stable/Godot_v4.7.2-stable_export_templates.tpz
|
||||
rm -rf /tmp/tpl && mkdir -p /tmp/tpl
|
||||
|
||||
Reference in new issue
Block a user