[ET Device Support] Schema changes: device info on Tensor and buffer-level device array #37
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate Flatbuffer Generation | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - "schema/**" | |
| - "exir/_serialize/generated/executorch_flatbuffer/**" | |
| jobs: | |
| exir-flatbuffer: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: setup python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: install executorch (with flatc) | |
| run: ./install_executorch.sh -e | |
| - name: Generate flatbuffer Python | |
| run: python exir/_serialize/generate_program.py | |
| - name: Validate executorch_flatbuffer is unchanged | |
| run: | | |
| git add -A exir/_serialize/generated/executorch_flatbuffer | |
| if ! git diff --cached --quiet -- exir/_serialize/generated/executorch_flatbuffer; then | |
| echo "Error: executorch_flatbuffer has uncommitted changes." | |
| echo "Please run 'python exir/_serialize/generate_program.py' to regenerate the files and commit the changes." | |
| exit 1 | |
| fi |