-
Notifications
You must be signed in to change notification settings - Fork 34
583 lines (509 loc) · 21 KB
/
Copy pathci.yml
File metadata and controls
583 lines (509 loc) · 21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
name: CI
on:
# Manual trigger only - we don't want CI running on every push during development
workflow_dispatch:
inputs:
build_filter:
description: 'Which builds to run'
required: false
type: choice
options:
- all
- windows-only
- windows-dawn-only
- macos-only
- linux-only
default: 'all'
jobs:
# =============================================================================
# macOS Builds
# =============================================================================
build-macos:
if: ${{ inputs.build_filter == 'all' || inputs.build_filter == 'macos-only' }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
# macOS ARM64 - QuickJS + wgpu (default)
- os: macos-15
arch: arm64
js_engine: quickjs
webgpu: wgpu
name: macOS-arm64-quickjs-wgpu
# macOS ARM64 - V8 + wgpu
- os: macos-15
arch: arm64
js_engine: v8
webgpu: wgpu
name: macOS-arm64-v8-wgpu
# macOS ARM64 - JSC + wgpu
- os: macos-15
arch: arm64
js_engine: jsc
webgpu: wgpu
name: macOS-arm64-jsc-wgpu
# macOS ARM64 - QuickJS + Dawn
- os: macos-15
arch: arm64
js_engine: quickjs
webgpu: dawn
name: macOS-arm64-quickjs-dawn
# macOS ARM64 - V8 + Dawn
- os: macos-15
arch: arm64
js_engine: v8
webgpu: dawn
name: macOS-arm64-v8-dawn
# macOS ARM64 - JSC + Dawn
- os: macos-15
arch: arm64
js_engine: jsc
webgpu: dawn
name: macOS-arm64-jsc-dawn
# macOS x64 - JSC + Dawn only (x64 Mac is legacy)
- os: macos-15-intel
arch: x64
js_engine: jsc
webgpu: dawn
name: macOS-x64-jsc-dawn
name: Build - ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Cache dependencies
uses: actions/cache@v4
id: cache-deps
with:
path: third_party
key: deps-macos-${{ matrix.arch }}-${{ matrix.webgpu }}-${{ hashFiles('scripts/download-deps.mjs') }}
- name: Download base dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
run: node scripts/download-deps.mjs
- name: Download V8 (if needed)
if: matrix.js_engine == 'v8' && steps.cache-deps.outputs.cache-hit != 'true'
run: |
brew install p7zip || true
node scripts/download-deps.mjs --only v8
- name: Download Dawn (if needed)
if: matrix.webgpu == 'dawn' && steps.cache-deps.outputs.cache-hit != 'true'
run: node scripts/download-deps.mjs --only dawn
- name: Create SDL3 include symlink
run: |
if [ -d "third_party/sdl3/SDL3.xcframework" ]; then
mkdir -p third_party/sdl3/include
ln -sf ../SDL3.xcframework/macos-arm64_x86_64/SDL3.framework/Headers third_party/sdl3/include/SDL3
fi
- name: Configure CMake
run: |
CMAKE_ARGS="-B build -DCMAKE_BUILD_TYPE=Release"
# JS Engine
if [ "${{ matrix.js_engine }}" == "quickjs" ]; then
CMAKE_ARGS="$CMAKE_ARGS -DMYSTRAL_USE_QUICKJS=ON -DMYSTRAL_USE_V8=OFF -DMYSTRAL_USE_JSC=OFF"
elif [ "${{ matrix.js_engine }}" == "v8" ]; then
CMAKE_ARGS="$CMAKE_ARGS -DMYSTRAL_USE_QUICKJS=OFF -DMYSTRAL_USE_V8=ON -DMYSTRAL_USE_JSC=OFF"
elif [ "${{ matrix.js_engine }}" == "jsc" ]; then
CMAKE_ARGS="$CMAKE_ARGS -DMYSTRAL_USE_QUICKJS=OFF -DMYSTRAL_USE_V8=OFF -DMYSTRAL_USE_JSC=ON"
fi
# WebGPU backend
if [ "${{ matrix.webgpu }}" == "wgpu" ]; then
CMAKE_ARGS="$CMAKE_ARGS -DMYSTRAL_USE_WGPU=ON -DMYSTRAL_USE_DAWN=OFF"
elif [ "${{ matrix.webgpu }}" == "dawn" ]; then
CMAKE_ARGS="$CMAKE_ARGS -DMYSTRAL_USE_WGPU=OFF -DMYSTRAL_USE_DAWN=ON"
fi
echo "Running: cmake $CMAKE_ARGS"
cmake $CMAKE_ARGS
- name: Build
run: cmake --build build --config Release -j$(sysctl -n hw.ncpu)
- name: Test CLI
run: ./build/mystral --version
- name: Package artifacts
run: |
mkdir -p artifacts
cp build/mystral artifacts/
cp build/libmystral-runtime.a artifacts/ || true
# Include SDL3 framework for distribution
if [ -d "third_party/sdl3/SDL3.xcframework/macos-arm64_x86_64/SDL3.framework" ]; then
cp -R third_party/sdl3/SDL3.xcframework/macos-arm64_x86_64/SDL3.framework artifacts/
fi
cd artifacts && zip -r ../mystral-${{ matrix.name }}.zip .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: mystral-${{ matrix.name }}
path: mystral-${{ matrix.name }}.zip
# =============================================================================
# Linux Builds
# =============================================================================
build-linux:
if: ${{ inputs.build_filter == 'all' || inputs.build_filter == 'linux-only' }}
# Use Ubuntu 24.04 to match pre-built Skia libraries
# Note: Pre-built Skia uses newer glibc symbols, so binaries require Ubuntu 24.04+
runs-on: ubuntu-24.04
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
include:
# Linux x64 - QuickJS + wgpu (default)
- js_engine: quickjs
webgpu: wgpu
name: linux-x64-quickjs-wgpu
# Linux x64 - V8 + wgpu
- js_engine: v8
webgpu: wgpu
name: linux-x64-v8-wgpu
# Linux x64 - QuickJS + Dawn
- js_engine: quickjs
webgpu: dawn
name: linux-x64-quickjs-dawn
# Linux x64 - V8 + Dawn
- js_engine: v8
webgpu: dawn
name: linux-x64-v8-dawn
name: Build - ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install system dependencies
run: |
# Remove Microsoft repos that sometimes return 403 on GitHub Actions runners
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list /etc/apt/sources.list.d/azure-cli.list || true
sudo apt-get update
sudo apt-get install -y \
cmake \
build-essential \
libx11-dev \
libxext-dev \
libxrandr-dev \
libxi-dev \
libxinerama-dev \
libxcursor-dev \
libwayland-dev \
libxkbcommon-dev \
libegl-dev \
libgles-dev \
libcurl4-openssl-dev \
zlib1g-dev \
libfontconfig1-dev \
p7zip-full
- name: Cache dependencies
uses: actions/cache@v4
id: cache-deps
with:
path: third_party
key: deps-linux-x64-${{ matrix.webgpu }}-v5-${{ hashFiles('scripts/download-deps.mjs') }}
- name: Download base dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
run: node scripts/download-deps.mjs
- name: Download V8 (if needed)
if: matrix.js_engine == 'v8' && steps.cache-deps.outputs.cache-hit != 'true'
run: node scripts/download-deps.mjs --only v8
- name: Download Dawn (if needed)
if: matrix.webgpu == 'dawn' && steps.cache-deps.outputs.cache-hit != 'true'
run: node scripts/download-deps.mjs --only dawn
- name: Build SDL3 from source
if: steps.cache-deps.outputs.cache-hit != 'true'
run: |
cd third_party/sdl3
SDL_DIR=$(ls -d SDL3-* 2>/dev/null | head -1)
if [ -n "$SDL_DIR" ]; then
cd "$SDL_DIR"
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../installed
cmake --build build -j$(nproc)
cmake --install build
cd ..
ln -sf installed/lib lib
ln -sf installed/include include
fi
- name: Configure CMake
run: |
CMAKE_ARGS="-B build -DCMAKE_BUILD_TYPE=Release"
# JS Engine
if [ "${{ matrix.js_engine }}" == "quickjs" ]; then
CMAKE_ARGS="$CMAKE_ARGS -DMYSTRAL_USE_QUICKJS=ON -DMYSTRAL_USE_V8=OFF -DMYSTRAL_USE_JSC=OFF"
elif [ "${{ matrix.js_engine }}" == "v8" ]; then
CMAKE_ARGS="$CMAKE_ARGS -DMYSTRAL_USE_QUICKJS=OFF -DMYSTRAL_USE_V8=ON -DMYSTRAL_USE_JSC=OFF"
fi
# WebGPU backend
if [ "${{ matrix.webgpu }}" == "wgpu" ]; then
CMAKE_ARGS="$CMAKE_ARGS -DMYSTRAL_USE_WGPU=ON -DMYSTRAL_USE_DAWN=OFF"
elif [ "${{ matrix.webgpu }}" == "dawn" ]; then
CMAKE_ARGS="$CMAKE_ARGS -DMYSTRAL_USE_WGPU=OFF -DMYSTRAL_USE_DAWN=ON"
fi
echo "Running: cmake $CMAKE_ARGS"
cmake $CMAKE_ARGS
- name: Build
run: cmake --build build --config Release -j$(nproc)
- name: Test CLI
run: ./build/mystral --version
- name: Package artifacts
run: |
mkdir -p artifacts
cp build/mystral artifacts/
cp build/libmystral-runtime.a artifacts/ || true
# Include SDL3 shared library
cp third_party/sdl3/installed/lib/libSDL3.so* artifacts/ || true
cd artifacts && zip -r ../mystral-${{ matrix.name }}.zip .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: mystral-${{ matrix.name }}
path: mystral-${{ matrix.name }}.zip
# =============================================================================
# Windows Builds - wgpu
# =============================================================================
build-windows-wgpu:
if: ${{ inputs.build_filter == 'all' || inputs.build_filter == 'windows-only' }}
runs-on: windows-2022
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- js_engine: quickjs
name: windows-x64-quickjs-wgpu
- js_engine: v8
name: windows-x64-v8-wgpu
name: Build - ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Cache dependencies
uses: actions/cache@v4
id: cache-deps
with:
path: third_party
key: deps-windows-x64-wgpu-v10-${{ hashFiles('scripts/download-deps.mjs') }}
- name: Download base dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
shell: bash
run: |
export PATH="/c/Program Files/7-Zip:$PATH"
node scripts/download-deps.mjs
- name: Download V8 (if needed)
if: matrix.js_engine == 'v8' && steps.cache-deps.outputs.cache-hit != 'true'
shell: bash
run: |
export PATH="/c/Program Files/7-Zip:$PATH"
node scripts/download-deps.mjs --only v8
- name: Install vcpkg dependencies
run: |
# Use static triplet for wgpu builds (/MT)
vcpkg install curl:x64-windows-static zlib:x64-windows-static
vcpkg integrate install
- name: Configure CMake
run: |
$CMAKE_ARGS = @("-B", "build", "-DCMAKE_BUILD_TYPE=Release")
# JS Engine
if ("${{ matrix.js_engine }}" -eq "quickjs") {
$CMAKE_ARGS += "-DMYSTRAL_USE_QUICKJS=ON", "-DMYSTRAL_USE_V8=OFF", "-DMYSTRAL_USE_JSC=OFF"
} elseif ("${{ matrix.js_engine }}" -eq "v8") {
$CMAKE_ARGS += "-DMYSTRAL_USE_QUICKJS=OFF", "-DMYSTRAL_USE_V8=ON", "-DMYSTRAL_USE_JSC=OFF"
# V8 requires C++20
$CMAKE_ARGS += "-DCMAKE_CXX_STANDARD=20"
}
# WebGPU backend - wgpu with static CRT (/MT)
$CMAKE_ARGS += "-DMYSTRAL_USE_WGPU=ON", "-DMYSTRAL_USE_DAWN=OFF"
$CMAKE_ARGS += "-DVCPKG_TARGET_TRIPLET=x64-windows-static"
$CMAKE_ARGS += "-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded"
$CMAKE_ARGS += "-DCMAKE_TOOLCHAIN_FILE=$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
Write-Host "Running: cmake $CMAKE_ARGS"
cmake @CMAKE_ARGS
- name: Build
run: cmake --build build --config Release
- name: Test CLI
shell: bash
run: ./build/Release/mystral.exe --version || echo "Build complete"
- name: Package artifacts
shell: bash
run: |
mkdir -p artifacts
cp build/Release/mystral.exe artifacts/ || cp build/mystral.exe artifacts/
cp build/Release/mystral-runtime.lib artifacts/ || cp build/mystral-runtime.lib artifacts/ || true
# Include SDL3 DLL
cp third_party/sdl3/bin/SDL3.dll artifacts/ || true
cd artifacts && 7z a ../mystral-${{ matrix.name }}.zip .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: mystral-${{ matrix.name }}
path: mystral-${{ matrix.name }}.zip
# =============================================================================
# Windows Builds - Dawn (separate job for targeted testing)
# =============================================================================
build-windows-dawn:
if: ${{ inputs.build_filter == 'all' || inputs.build_filter == 'windows-only' || inputs.build_filter == 'windows-dawn-only' }}
runs-on: windows-2022
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- js_engine: quickjs
name: windows-x64-quickjs-dawn
- js_engine: v8
name: windows-x64-v8-dawn
name: Build - ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Cache dependencies
uses: actions/cache@v4
id: cache-deps
with:
path: third_party
key: deps-windows-x64-dawn-v13-${{ hashFiles('scripts/download-deps.mjs') }}
- name: Download base dependencies (excluding Skia/Dawn - use library-builder version)
if: steps.cache-deps.outputs.cache-hit != 'true'
shell: bash
run: |
export PATH="/c/Program Files/7-Zip:$PATH"
# Exclude skia and dawn - we'll use skia-win-static from library-builder instead
# which includes both Skia and Dawn with matching /MT static CRT
node scripts/download-deps.mjs --exclude skia,dawn
- name: Download V8 (if needed)
if: matrix.js_engine == 'v8' && steps.cache-deps.outputs.cache-hit != 'true'
shell: bash
run: |
export PATH="/c/Program Files/7-Zip:$PATH"
node scripts/download-deps.mjs --only v8
- name: Download Skia with Dawn for Windows builds
if: steps.cache-deps.outputs.cache-hit != 'true'
shell: bash
run: |
export PATH="/c/Program Files/7-Zip:$PATH"
# Download Skia + Dawn from library-builder (includes dawn_combined.lib with D3D11/D3D12)
# This build uses /MT static CRT and has full WebGPU implementation
node scripts/download-deps.mjs --only skia-win-static
- name: Create WebGPU wrapper headers
# Always run this - wrapper headers are not in the cache, only downloaded deps
shell: bash
run: |
# library-builder Skia only has dawn/*.h headers, but code expects webgpu/*.h
# Create wrapper headers that include the dawn versions
INCLUDE_DIR="third_party/skia/build/include"
mkdir -p "$INCLUDE_DIR/webgpu"
# webgpu/webgpu.h -> dawn/webgpu.h
# Use angle brackets so it searches include paths (dawn/ is a sibling dir, not subdir)
printf '#ifndef INCLUDE_WEBGPU_WEBGPU_H_\n#define INCLUDE_WEBGPU_WEBGPU_H_\n#include <dawn/webgpu.h>\n#endif\n' > "$INCLUDE_DIR/webgpu/webgpu.h"
# webgpu/webgpu_cpp.h -> dawn/webgpu_cpp.h
printf '#ifndef INCLUDE_WEBGPU_WEBGPU_CPP_H_\n#define INCLUDE_WEBGPU_WEBGPU_CPP_H_\n#include <dawn/webgpu_cpp.h>\n#endif\n' > "$INCLUDE_DIR/webgpu/webgpu_cpp.h"
echo "Created WebGPU wrapper headers in $INCLUDE_DIR/webgpu/"
cat "$INCLUDE_DIR/webgpu/webgpu.h"
ls -la "$INCLUDE_DIR/webgpu/"
- name: Install vcpkg dependencies
run: |
# Use static triplet for all Windows builds (both wgpu and Dawn use /MT now)
vcpkg install curl:x64-windows-static zlib:x64-windows-static
vcpkg integrate install
- name: Configure CMake
run: |
$CMAKE_ARGS = @("-B", "build", "-DCMAKE_BUILD_TYPE=Release")
# JS Engine
if ("${{ matrix.js_engine }}" -eq "quickjs") {
$CMAKE_ARGS += "-DMYSTRAL_USE_QUICKJS=ON", "-DMYSTRAL_USE_V8=OFF", "-DMYSTRAL_USE_JSC=OFF"
} elseif ("${{ matrix.js_engine }}" -eq "v8") {
$CMAKE_ARGS += "-DMYSTRAL_USE_QUICKJS=OFF", "-DMYSTRAL_USE_V8=ON", "-DMYSTRAL_USE_JSC=OFF"
# V8 requires C++20
$CMAKE_ARGS += "-DCMAKE_CXX_STANDARD=20"
}
# WebGPU backend - Dawn with static CRT (/MT)
$CMAKE_ARGS += "-DMYSTRAL_USE_WGPU=OFF", "-DMYSTRAL_USE_DAWN=ON"
$CMAKE_ARGS += "-DVCPKG_TARGET_TRIPLET=x64-windows-static"
$CMAKE_ARGS += "-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded"
$CMAKE_ARGS += "-DCMAKE_TOOLCHAIN_FILE=$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
Write-Host "Running: cmake $CMAKE_ARGS"
cmake @CMAKE_ARGS
- name: Build
run: cmake --build build --config Release
- name: Test CLI
shell: bash
run: ./build/Release/mystral.exe --version || echo "Build complete"
- name: Package artifacts
shell: bash
run: |
mkdir -p artifacts
cp build/Release/mystral.exe artifacts/ || cp build/mystral.exe artifacts/
cp build/Release/mystral-runtime.lib artifacts/ || cp build/mystral-runtime.lib artifacts/ || true
# Include SDL3 DLL
cp third_party/sdl3/bin/SDL3.dll artifacts/ || true
cd artifacts && 7z a ../mystral-${{ matrix.name }}.zip .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: mystral-${{ matrix.name }}
path: mystral-${{ matrix.name }}.zip
# =============================================================================
# Summary Job - Always runs to show all artifacts
# =============================================================================
summary:
name: Build Summary
runs-on: ubuntu-latest
needs: [build-macos, build-linux, build-windows-wgpu, build-windows-dawn]
if: always()
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: List all artifacts
run: |
echo "## Build Artifacts" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "| Platform | JS Engine | WebGPU | Status |" >> $GITHUB_STEP_SUMMARY
echo "|----------|-----------|--------|--------|" >> $GITHUB_STEP_SUMMARY
# Check each expected artifact
for config in \
"macOS-arm64-quickjs-wgpu" \
"macOS-arm64-v8-wgpu" \
"macOS-arm64-jsc-wgpu" \
"macOS-arm64-quickjs-dawn" \
"macOS-arm64-v8-dawn" \
"macOS-arm64-jsc-dawn" \
"macOS-x64-jsc-dawn" \
"linux-x64-quickjs-wgpu" \
"linux-x64-v8-wgpu" \
"linux-x64-quickjs-dawn" \
"linux-x64-v8-dawn" \
"windows-x64-quickjs-wgpu" \
"windows-x64-v8-wgpu" \
"windows-x64-quickjs-dawn" \
"windows-x64-v8-dawn"
do
# Parse config name
PLATFORM=$(echo $config | cut -d'-' -f1-2)
JS_ENGINE=$(echo $config | cut -d'-' -f3)
WEBGPU=$(echo $config | cut -d'-' -f4)
if [ -d "artifacts/mystral-$config" ]; then
echo "| $PLATFORM | $JS_ENGINE | $WEBGPU | :white_check_mark: |" >> $GITHUB_STEP_SUMMARY
else
echo "| $PLATFORM | $JS_ENGINE | $WEBGPU | :x: |" >> $GITHUB_STEP_SUMMARY
fi
done
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Artifact Details" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
ls -la artifacts/ 2>/dev/null || echo "No artifacts found"
echo '```' >> $GITHUB_STEP_SUMMARY
- name: Report build status
run: |
TOTAL=$(ls -d artifacts/mystral-* 2>/dev/null | wc -l || echo 0)
EXPECTED=15
echo "Built $TOTAL of $EXPECTED configurations"
if [ "$TOTAL" -lt "$EXPECTED" ]; then
echo "::warning::Some builds failed. Check individual job logs for details."
fi