Merge pull request #8 from kadu-v/feature/version #5
This file contains 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: Build Executorch Wheel | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
Build-coreml-wheel: | |
runs-on: macos-latest | |
environment: prod-deploy | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Setup for CoreML delegate | |
shell: bash | |
run: ./executorch/backends/apple/coreml/scripts/install_requirements.sh | |
- name: Install Setup Tools | |
shell: bash | |
run: python -m pip install --upgrade pip setuptools wheel | |
- name: Build ExecutorchCoreML Wheel | |
shell: bash | |
run: | | |
./build_executorchcoreml_wheel.sh | |
- name: Set the tag from TAG file to environment variable | |
run: | | |
export TAG=$(cat TAG) | |
echo "TAG: $TAG" | |
echo "TAG=${TAG}" >> $GITHUB_ENV | |
- name: Upload executorchcoreml wheel | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files: out-coreml-wheel/*.whl | |
tag_name: ${{ env.TAG }}-wheel | |
Build-executorch-wheel: | |
runs-on: macos-latest | |
environment: prod-deploy | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Setup for Macos | |
shell: bash | |
run: ./setup_aarch64_macos.sh | |
- name: Install Setup Tools | |
shell: bash | |
run: python -m pip install --upgrade pip setuptools wheel | |
- name: Build Executorch Wheel | |
shell: bash | |
run: | | |
./build_executorch_wheel.sh | |
- name: Set the tag from TAG file to environment variable | |
run: | | |
export TAG=$(cat TAG) | |
echo "TAG: $TAG" | |
echo "TAG=${TAG}" >> $GITHUB_ENV | |
- name: Upload executorchcoreml wheel | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files: out-executorch-wheel/*.whl | |
tag_name: ${{ env.TAG }}-wheel | |