Skip to content

Commit c5e0728

Browse files
larryliu0820facebook-github-bot
authored andcommitted
Add buck2 build and run test model to pull.yml (#18)
Summary: Pull Request resolved: #18 Buck build the demo binary `executor_runner` and export a test model `linear.ff`, then run the model. Reviewed By: huydhn, cccclai Differential Revision: D47737752 fbshipit-source-id: 8aeaaa7b52d88316437fe54d4da9b48855c61e1a
1 parent 6cef6c7 commit c5e0728

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/pull.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,16 @@ jobs:
3636
# Install executorch
3737
pip3 install .
3838
39-
popd
40-
4139
# Just print out the list of packages for debugging
42-
pip list
40+
pip3 list
41+
42+
# Build executorch runtime
43+
buck2 build //examples/executor_runner:executor_runner
44+
45+
# Export a test model
46+
python3 -m examples.export.export_example --model_name="linear"
47+
48+
# Run test model
49+
buck2 run //examples/executor_runner:executor_runner -- --model_path ./linear.ff
50+
51+
popd

0 commit comments

Comments
 (0)