File tree Expand file tree Collapse file tree 4 files changed +26
-28
lines changed Expand file tree Collapse file tree 4 files changed +26
-28
lines changed Original file line number Diff line number Diff line change 11
11
" Bash(git add:*)" ,
12
12
" WebFetch(domain:stackoverflow.com)" ,
13
13
" Bash(rustc:*)" ,
14
- " Bash(cargo build:*)"
14
+ " Bash(cargo build:*)" ,
15
+ " Bash(gh run view:*)"
15
16
],
16
17
"deny" : []
17
18
}
Original file line number Diff line number Diff line change @@ -103,7 +103,8 @@ jobs:
103
103
- name : Build Examples
104
104
run : |
105
105
bazel build //examples/basic:hello_component
106
- bazel build //examples/multi_profile:development_system
106
+ bazel build //examples/multi_profile:camera_sensor
107
+ bazel build //examples/multi_profile:object_detection
107
108
108
109
- name : Validate Generated Files
109
110
run : |
Original file line number Diff line number Diff line change @@ -55,24 +55,14 @@ wac_compose(
55
55
composition = """
56
56
package dev:composition;
57
57
58
- let camera = new camera:component {
59
- frame-rate: 30,
60
- resolution: "1080p",
61
- };
62
-
63
- let ai = new ai:component {
64
- model: "yolov5n",
65
- confidence: 0.5,
66
- };
67
-
68
- // Connect camera output to AI input
69
- connect camera.frame-output -> ai.frame-input;
58
+ let camera = new camera:component {};
59
+ let ai = new ai:component {};
70
60
71
61
export ai as main;
72
62
""" ,
73
63
profile = "debug" , # Default profile
74
64
tags = ["manual" ], # Skip in //... builds until WAC is properly configured
75
- use_symlinks = True , # Save disk space
65
+ use_symlinks = False , # Use copying instead of symlinks for CI compatibility
76
66
)
77
67
78
68
# Production composition - all release builds
@@ -85,7 +75,7 @@ wac_compose(
85
75
composition_file = "production.wac" ,
86
76
profile = "release" , # All components use release profile
87
77
tags = ["manual" ], # Skip in //... builds until WAC is properly configured
88
- use_symlinks = True ,
78
+ use_symlinks = False , # Use copying instead of symlinks for CI compatibility
89
79
)
90
80
91
81
# Custom mixed composition for testing
Original file line number Diff line number Diff line change @@ -72,20 +72,26 @@ def _wac_compose_impl(ctx):
72
72
"profile" : profile ,
73
73
}
74
74
75
- # Choose linking strategy
76
- link_command = "ln -sf" if ctx .attr .use_symlinks else "cp"
77
-
78
- # Prepare deps directory with proper WAC structure
75
+ # Choose linking strategy - use absolute paths for symlinks
79
76
copy_commands = []
80
77
for comp_name , comp_data in selected_components .items ():
81
- copy_commands .append (
82
- "{link_cmd} {src} {deps_dir}/{comp_name}.wasm" .format (
83
- link_cmd = link_command ,
84
- src = comp_data ["file" ].path ,
85
- deps_dir = deps_dir .path ,
86
- comp_name = comp_name ,
87
- ),
88
- )
78
+ if ctx .attr .use_symlinks :
79
+ # Use absolute path for symlinks to avoid dangling links
80
+ copy_commands .append (
81
+ "ln -sf \" $(pwd)/{src}\" {deps_dir}/{comp_name}.wasm" .format (
82
+ src = comp_data ["file" ].path ,
83
+ deps_dir = deps_dir .path ,
84
+ comp_name = comp_name ,
85
+ ),
86
+ )
87
+ else :
88
+ copy_commands .append (
89
+ "cp {src} {deps_dir}/{comp_name}.wasm" .format (
90
+ src = comp_data ["file" ].path ,
91
+ deps_dir = deps_dir .path ,
92
+ comp_name = comp_name ,
93
+ ),
94
+ )
89
95
90
96
ctx .actions .run_shell (
91
97
inputs = [comp_data ["file" ] for comp_data in selected_components .values ()],
You can’t perform that action at this time.
0 commit comments