From 04865abb39ed244fc70da6d8d8a1557c3eb82d7e Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Fri, 21 Aug 2026 20:27:50 +0100 Subject: [PATCH] fix(ci): complete Godot imports before testing --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0c2c20c1..d282a0b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,10 @@ RUN apt-get update \ && apt-get install -y --no-install-recommends libfontconfig1 \ && rm -rf /var/lib/apt/lists/* COPY Game /workspace/Game -# `.import` metadata is tracked but the generated `.godot/imported` cache is -# intentionally not. A fresh checkout gives both source and metadata the -# same timestamp, which can make Godot skip regeneration. Mark importable -# sources newer so this image always contains a complete generated cache. -RUN find Game -type f \( -name '*.blend' -o -name '*.glb' -o -name '*.png' -o -name '*.svg' \) -exec touch {} + \ - && godot --headless --editor --path Game --import --quit \ +# `--import` starts the editor, waits for resource import to finish, then +# exits. Do not combine it with `--quit`, which ends the editor after one +# iteration and can interrupt generation of `.godot/imported` resources. +RUN godot --headless --path Game --import \ && test -f Game/.godot/imported/nebula_station.glb-fa9a6dd87ae3789d04205b52215e2e76.scn \ && test -f Game/.godot/imported/nebula_debris.glb-39af77a17c0998b5b73172577d906cb9.scn \ && test -f Game/.godot/imported/nebula_planet.glb-2431590907ff85cf1057e7d6ad614ed7.scn