@@ -168,22 +168,25 @@ echo "CACHE_KEY=$CACHE_KEY"`;
168168 if ! command -v npm > /dev/null 2>&1; then printf '#!/bin/sh\nexit 0\n' > /usr/local/bin/npm && chmod +x /usr/local/bin/npm; fi
169169 if ! command -v n > /dev/null 2>&1; then printf '#!/bin/sh\nexit 0\n' > /usr/local/bin/n && chmod +x /usr/local/bin/n; fi
170170 if ! command -v yarn > /dev/null 2>&1; then printf '#!/bin/sh\nexit 0\n' > /usr/local/bin/yarn && chmod +x /usr/local/bin/yarn; fi
171- echo "game ci start"; echo "game ci start" >> /home/job-log.txt; echo "CACHE_KEY=$CACHE_KEY"; echo "$CACHE_KEY"; if [ -n "$LOCKED_WORKSPACE" ]; then echo "Retained Workspace: true"; fi; if [ -n "$LOCKED_WORKSPACE" ] && [ -d "$GITHUB_WORKSPACE/.git" ]; then echo "Retained Workspace Already Exists!"; fi; /entrypoint.sh
171+ # Pipe entrypoint.sh output through log stream to capture Unity build output (including "Build succeeded")
172+ { echo "game ci start"; echo "game ci start" >> /home/job-log.txt; echo "CACHE_KEY=$CACHE_KEY"; echo "$CACHE_KEY"; if [ -n "$LOCKED_WORKSPACE" ]; then echo "Retained Workspace: true"; fi; if [ -n "$LOCKED_WORKSPACE" ] && [ -d "$GITHUB_WORKSPACE/.git" ]; then echo "Retained Workspace Already Exists!"; fi; /entrypoint.sh; } | node ${ builderPath } -m remote-cli-log-stream --logFile /home/job-log.txt
172173 mkdir -p "/data/cache/$CACHE_KEY/Library"
173174 if [ ! -f "/data/cache/$CACHE_KEY/Library/lib-$BUILD_GUID.tar" ] && [ ! -f "/data/cache/$CACHE_KEY/Library/lib-$BUILD_GUID.tar.lz4" ]; then
174175 tar -cf "/data/cache/$CACHE_KEY/Library/lib-$BUILD_GUID.tar" --files-from /dev/null || touch "/data/cache/$CACHE_KEY/Library/lib-$BUILD_GUID.tar"
175176 fi
176177 if [ ! -f "/data/cache/$CACHE_KEY/build/build-$BUILD_GUID.tar" ] && [ ! -f "/data/cache/$CACHE_KEY/build/build-$BUILD_GUID.tar.lz4" ]; then
177178 tar -cf "/data/cache/$CACHE_KEY/build/build-$BUILD_GUID.tar" --files-from /dev/null || touch "/data/cache/$CACHE_KEY/build/build-$BUILD_GUID.tar"
178179 fi
179- # Run post-build tasks - ensure output is captured even if command fails
180- node ${ builderPath } -m remote-cli-post-build || echo "Post-build command completed with warnings"
180+ # Run post-build tasks and pipe output through log stream to capture "Activation successful"
181+ node ${ builderPath } -m remote-cli-post-build | node ${ builderPath } -m remote-cli-log-stream --logFile /home/job-log.txt || echo "Post-build command completed with warnings"
182+ # Write end marker and pipe through log stream
183+ echo "end of cloud runner job" | node ${ builderPath } -m remote-cli-log-stream --logFile /home/job-log.txt
184+ echo "---${ CloudRunner . buildParameters . logId } " | node ${ builderPath } -m remote-cli-log-stream --logFile /home/job-log.txt
181185 # Mirror cache back into workspace for test assertions
182186 mkdir -p "$GITHUB_WORKSPACE/cloud-runner-cache/cache/$CACHE_KEY/Library"
183187 mkdir -p "$GITHUB_WORKSPACE/cloud-runner-cache/cache/$CACHE_KEY/build"
184188 cp -a "/data/cache/$CACHE_KEY/Library/." "$GITHUB_WORKSPACE/cloud-runner-cache/cache/$CACHE_KEY/Library/" || true
185- cp -a "/data/cache/$CACHE_KEY/build/." "$GITHUB_WORKSPACE/cloud-runner-cache/cache/$CACHE_KEY/build/" || true
186- echo "end of cloud runner job"` ;
189+ cp -a "/data/cache/$CACHE_KEY/build/." "$GITHUB_WORKSPACE/cloud-runner-cache/cache/$CACHE_KEY/build/" || true` ;
187190 }
188191
189192 // prettier-ignore
0 commit comments