|
63 | 63 | set VULKAN_SDK=D:/a/VulkanSDK |
64 | 64 | cd src |
65 | 65 | call build.bat |
66 | | - if not exist ../out/pilotlight_python.exe exit 1 |
67 | | - if not exist ../out/glfwd.lib exit 1 |
68 | | - if not exist ../out/pl_platform_ext.lib exit 1 |
69 | | - if not exist ../out/python3_d.dll exit 1 |
70 | | - if not exist ../out/python314_d.dll exit 1 |
71 | | - if not exist ../pilotlight/pilotlight_d.pyd exit 1 |
| 66 | + if %ERRORLEVEL% NEQ 0 exit 1 |
72 | 67 |
|
73 | 68 | MacOS: |
74 | 69 |
|
@@ -110,50 +105,10 @@ jobs: |
110 | 105 |
|
111 | 106 | - name: Build Binaries |
112 | 107 | run: | |
113 | | - set -Eeuo pipefail |
114 | | -
|
115 | | - # Build |
116 | | - pushd "$GITHUB_WORKSPACE/src" >/dev/null |
| 108 | + cd $GITHUB_WORKSPACE |
| 109 | + cd src |
117 | 110 | chmod +x build.sh |
118 | | - ./build.sh |
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/libglfwd.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 | | -
|
| 111 | + ./build.sh || exit 1 |
157 | 112 |
|
158 | 113 | Ubuntu: |
159 | 114 |
|
@@ -208,46 +163,7 @@ jobs: |
208 | 163 |
|
209 | 164 | - name: Build Binaries |
210 | 165 | run: | |
211 | | - set -Eeuo pipefail |
212 | | -
|
213 | | - # Build |
214 | | - pushd "$GITHUB_WORKSPACE/src" >/dev/null |
| 166 | + cd $GITHUB_WORKSPACE |
| 167 | + cd src |
215 | 168 | chmod +x build.sh |
216 | | - ./build.sh |
217 | | - popd >/dev/null |
218 | | -
|
219 | | - echo "=== Directory snapshots for debugging ===" |
220 | | - echo "::group::ls -al ./out" |
221 | | - ls -al ./out || true |
222 | | - echo "::endgroup::" |
223 | | - echo "::group::ls -al ./pilotlight" |
224 | | - ls -al ./pilotlight || true |
225 | | - echo "::endgroup::" |
226 | | -
|
227 | | - # List of required files relative to repo root |
228 | | - required_files=( |
229 | | - "./out/pilotlight_python" |
230 | | - "./out/glfwd.a" |
231 | | - "./out/pl_platform_ext.a" |
232 | | - "./pilotlight/pilotlight.so" |
233 | | - ) |
234 | | -
|
235 | | - # Check for missing files and collect all failures before exiting |
236 | | - missing=() |
237 | | - for f in "${required_files[@]}"; do |
238 | | - if [[ -f "$f" ]]; then |
239 | | - echo "✅ Found: $f" |
240 | | - else |
241 | | - echo "::error file=$f::Missing required file" |
242 | | - missing+=("$f") |
243 | | - fi |
244 | | - done |
245 | | -
|
246 | | - if ((${#missing[@]})); then |
247 | | - echo "" |
248 | | - echo "❌ Missing ${#missing[@]} required file(s):" |
249 | | - printf ' - %s\n' "${missing[@]}" |
250 | | - exit 1 |
251 | | - else |
252 | | - echo "🎉 All required files are present." |
253 | | - fi |
| 169 | + ./build.sh || exit 1 |
0 commit comments