From bc0e53acf8f4614da6d187a48fcb0184561523b8 Mon Sep 17 00:00:00 2001 From: Mengwei Liu Date: Fri, 28 Jul 2023 21:00:09 -0700 Subject: [PATCH] Add buck2 build and run test model to pull.yml (#18) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/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: 52e231b37cc58bc6604d42bdc145e70190234f6c --- .github/workflows/pull.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 7b4d34c8913..9a2333dc9b0 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -36,7 +36,16 @@ jobs: # Install executorch pip3 install . - popd - # Just print out the list of packages for debugging - pip list + pip3 list + + # Build executorch runtime + buck2 build //examples/executor_runner:executor_runner + + # Export a test model + python3 -m examples.export.export_example --model_name="linear" + + # Run test model + buck2 run //examples/executor_runner:executor_runner -- --model_path ./linear.ff + + popd