Skip to content

Commit 1d85358

Browse files
WIP
1 parent f443722 commit 1d85358

1 file changed

Lines changed: 42 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,20 +110,50 @@ jobs:
110110
111111
- name: Build Pilot Light Python
112112
run: |
113-
cd $GITHUB_WORKSPACE
114-
cd src
113+
set -Eeuo pipefail
114+
115+
# Build
116+
pushd "$GITHUB_WORKSPACE/src" >/dev/null
115117
chmod +x build.sh
116118
./build.sh
117-
cd ..
118-
cd out
119-
ls
120-
cd ../pilotlight
121-
ls
122-
cd ..
123-
test -f ./out/pilotlight_python || exit 1
124-
test -f ./out/libgltfd.a || exit 1
125-
test -f ./out/libpl_platform_ext.a || exit 1
126-
test -f ./pilotlight/pilotlight.so || exit 1
119+
popd >/dev/null
120+
121+
echo "=== Directory snapshots for debugging ==="
122+
echo "::group::ls -al ./out"
123+
ls -al ./out || true
124+
echo "::endgroup::"
125+
echo "::group::ls -al ./pilotlight"
126+
ls -al ./pilotlight || true
127+
echo "::endgroup::"
128+
129+
# List of required files relative to repo root
130+
required_files=(
131+
"./out/pilotlight_python"
132+
"./out/libgltfd.a"
133+
"./out/libpl_platform_ext.a"
134+
"./pilotlight/pilotlight.so"
135+
)
136+
137+
# Check for missing files and collect all failures before exiting
138+
missing=()
139+
for f in "${required_files[@]}"; do
140+
if [[ -f "$f" ]]; then
141+
echo "✅ Found: $f"
142+
else
143+
echo "::error file=$f::Missing required file"
144+
missing+=("$f")
145+
fi
146+
done
147+
148+
if ((${#missing[@]})); then
149+
echo ""
150+
echo "❌ Missing ${#missing[@]} required file(s):"
151+
printf ' - %s\n' "${missing[@]}"
152+
exit 1
153+
else
154+
echo "🎉 All required files are present."
155+
fi
156+
127157
128158
Ubuntu:
129159

0 commit comments

Comments
 (0)