@@ -135,30 +135,39 @@ jobs:
135135
136136 - name : Test Multi-Profile Builds
137137 run : |
138- cd examples/multi_profile
139- bazel build :camera_sensor
140- bazel build :object_detection
138+ bazel build //examples/multi_profile:camera_sensor
139+ bazel build //examples/multi_profile:object_detection
141140
142- # Verify multiple profiles were created
143- ls -la bazel-bin/
141+ # Get bazel-bin path and verify multiple profiles were created
142+ BAZEL_BIN=$(bazel info bazel-bin)
143+ ls -la "$BAZEL_BIN/examples/multi_profile/"
144144
145- - name : Test WAC Composition
145+ - name : Test Component Variants
146146 run : |
147- cd examples/multi_profile
148- bazel build :development_system
149- bazel build :production_system
147+ bazel build //examples/multi_profile:camera_sensor_debug
148+ bazel build //examples/multi_profile:camera_sensor_release
149+ bazel build //examples/multi_profile:object_detection_debug
150+ bazel build //examples/multi_profile:object_detection_release
151+
152+ # Get bazel-bin path
153+ BAZEL_BIN=$(bazel info bazel-bin)
150154
151- # Verify composed systems are valid WASM
152- wasm-tools validate bazel-bin/development_system.wasm
153- wasm-tools validate bazel-bin/production_system.wasm
155+ # Verify individual components are valid WASM
156+ wasm-tools validate "$BAZEL_BIN/examples/multi_profile/camera_sensor_debug.component.wasm"
157+ wasm-tools validate "$BAZEL_BIN/examples/multi_profile/camera_sensor_release.component.wasm"
158+ wasm-tools validate "$BAZEL_BIN/examples/multi_profile/object_detection_debug.component.wasm"
159+ wasm-tools validate "$BAZEL_BIN/examples/multi_profile/object_detection_release.component.wasm"
154160
155- - name : Test Symlink Strategy
161+ - name : Test Component Output Structure
156162 run : |
157- cd examples/multi_profile
158- bazel build :development_system --verbose_failures
163+ # Get bazel-bin path
164+ BAZEL_BIN=$( bazel info bazel-bin)
159165
160- # Check that symlinks were created (not copies)
161- find bazel-bin -type l -name "*.wasm" | wc -l
166+ # Check that multiple profiles created separate outputs
167+ echo "Camera sensor variants:"
168+ ls -la "$BAZEL_BIN/examples/multi_profile/camera_sensor"*.wasm
169+ echo "Object detection variants:"
170+ ls -la "$BAZEL_BIN/examples/multi_profile/object_detection"*.wasm
162171
163172 release :
164173 name : Release
0 commit comments