File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,19 +14,21 @@ jobs:
1414 - name : Checkout
1515 uses : actions/checkout@v4
1616
17- - name : Install flatc
18- run : |
19- sudo apt-get update
20- sudo apt-get install -y flatbuffers-compiler
21- flatc --version
17+ - name : setup python
18+ uses : actions/setup-python@v5
19+ with :
20+ python-version : " 3.12"
21+
22+ - name : install executorch (with flatc)
23+ run : ./install_executorch.sh -e
2224
2325 - name : Generate flatbuffer Python
2426 run : python exir/_serialize/generate_program.py
2527
2628 - name : Validate executorch_flatbuffer is unchanged
2729 run : |
28- git add -A executorch_flatbuffer
29- if ! git diff --cached --quiet -- executorch_flatbuffer; then
30+ git add -A exir/_serialize/generated/ executorch_flatbuffer
31+ if ! git diff --cached --quiet -- exir/_serialize/generated/ executorch_flatbuffer; then
3032 echo "Error: executorch_flatbuffer has uncommitted changes."
3133 echo "Please run 'python exir/_serialize/generate_program.py' to regenerate the files and commit the changes."
3234 exit 1
You can’t perform that action at this time.
0 commit comments