Skip to content

Commit ca69514

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 `size_test_all_ops` and export a test model `ModuleLinear.ff`, then run the model. Differential Revision: D47737752 fbshipit-source-id: eaf0e24434e4693e09abafff819b69fa3ec5fada
1 parent 2e97726 commit ca69514

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/pull.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,17 @@ jobs:
2727
# Create the softlink to the workspace as install.sh requires to run from its parent directory
2828
ln -s "${WORKSPACE}" executorch
2929
# Install executorch
30-
source executorch/install.sh
30+
bash executorch/install.sh
31+
popd
3132
3233
# Just print out the list of packages for debugging
3334
pip list
35+
36+
# Build executorch runtime
37+
buck2 build //test:size_test_all_ops
38+
39+
# Export a test model
40+
python3 test/models/export_program --modules=ModuleLinear --outdir=./
41+
42+
# Run test model
43+
buck2 run //test:size_test_all_ops ./ModuleLinear.ff

0 commit comments

Comments
 (0)