Add push trigger for PR validation #1
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
| # Copyright (c) Meta Platforms, Inc. and affiliates. | |
| # All rights reserved. | |
| # | |
| # This source code is licensed under the BSD-style license found in the | |
| # LICENSE file in the root directory of this source tree. | |
| name: Export Models | |
| on: | |
| push: | |
| schedule: | |
| # Run nightly at midnight UTC | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| dl3_export: | |
| runs-on: ubuntu-latest | |
| name: Export DL3 to XNNPACK | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install executorch | |
| - name: Run export script | |
| working-directory: dl3/python | |
| run: python export.py | |
| - name: Upload exported model | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dl3-xnnpack-fp32 | |
| path: dl3/python/dl3_xnnpack_fp32.pte | |
| if-no-files-found: error |