File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -144,16 +144,12 @@ jobs:
144144 cargo run
145145 working-directory : examples/etdump
146146
147- - name : Check nano-gpt example
148- run : cargo check
147+ - name : Build nano-gpt example
148+ run : cargo build
149149 working-directory : examples/nano-gpt
150- env :
151- EXECUTORCH_RS_LINK : 0
152- - name : Check llama3 example
153- run : cargo check
150+ - name : Build llama3 example
151+ run : cargo build
154152 working-directory : examples/llama3
155- env :
156- EXECUTORCH_RS_LINK : 0
157153
158154 check :
159155 runs-on : ${{ matrix.runner }}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ fn main() {
44 . expect ( "EXECUTORCH_RS_EXECUTORCH_LIB_DIR is not set, can't locate executorch static libs" ) ;
55
66 println ! ( "cargo::rustc-link-search=native={libs_dir}/kernels/portable/" ) ;
7- println ! ( "cargo::rustc-link-lib=static=portable_kernels" ) ;
7+ println ! ( "cargo::rustc-link-lib=static:+whole-archive =portable_kernels" ) ;
88
99 println ! ( "cargo::rustc-link-search=native={libs_dir}/configurations/" ) ;
1010 println ! ( "cargo::rustc-link-lib=static:+whole-archive=optimized_native_cpu_ops_lib" ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ fn main() {
44 . expect ( "EXECUTORCH_RS_EXECUTORCH_LIB_DIR is not set, can't locate executorch static libs" ) ;
55
66 println ! ( "cargo::rustc-link-search=native={libs_dir}/kernels/portable/" ) ;
7- println ! ( "cargo::rustc-link-lib=static=portable_kernels" ) ;
7+ println ! ( "cargo::rustc-link-lib=static:+whole-archive =portable_kernels" ) ;
88
99 println ! ( "cargo::rustc-link-search=native={libs_dir}/configurations/" ) ;
1010 println ! ( "cargo::rustc-link-lib=static:+whole-archive=optimized_native_cpu_ops_lib" ) ;
You can’t perform that action at this time.
0 commit comments