Generate ARM MacOS builds for Python 3.10 #589
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 And Deploy | |
on: | |
push: | |
branches: | |
- master | |
- v2.2-for-blender-v2.93 | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest, macos-14] | |
python: ['3.10'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install Cython | |
- name: Setup Development Enviroment | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Build | |
run: python setup.py build --export --exportheaders --noversioncheck | |
- name: Upload Builds | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Builds | |
path: animation_nodes*.zip | |
deploy: | |
name: Deploy | |
needs: build | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' | |
steps: | |
- name: Download Builds | |
uses: actions/download-artifact@v3 | |
with: | |
name: Builds | |
- name: Extract Branch Name | |
id: extract_branch_name | |
run: echo ::set-output name=branch::${GITHUB_REF#refs/heads/} | |
- name: Upload Release Assets | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ steps.extract_branch_name.outputs.branch }}-cd-build | |
file: animation_nodes*.zip | |
overwrite: true | |
file_glob: true |