Skip to content

aim packaging pipeline #342

aim packaging pipeline

aim packaging pipeline #342

Workflow file for this run

name: aim packaging pipeline
on:
workflow_call:
secrets:
PYPI_PASSWORD:
required: true
DOCKER_HUB_USERNAME:
required: true
DOCKER_HUB_PASSWORD:
required: true
inputs:
branch:
required: true
type: string
workflow_dispatch:
jobs:
macos-dist:
if: ${{ github.event_name == 'schedule' || github.actor == 'mihran113' || github.actor == 'alberttorosyan' || github.actor == 'roubkar' }}
runs-on: m1
strategy:
fail-fast: false
matrix:
python-version: ['3.10']
arch: ['arm64']
exclude:
- arch: 'arm64'
python-version: 3.7
name: Python ${{ matrix.python-version }} for ${{ matrix.arch }} build
env:
MACOSX_DEPLOYMENT_TARGET: 10.14
AIM_DEP_DIR: /tmp/aim_run/${{ github.run_number }}/${{ matrix.arch }}
PYTHON: /opt/conda/${{ matrix.arch }}/envs/py${{ matrix.python-version }}/bin/python
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
ref: ${{ inputs.branch || github.ref }}
- name: Build bdist wheel
run: |
arch -${{matrix.arch}} $PYTHON -m build
- name: Publish wheel
env:
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
$PYTHON -m twine upload -u __token__ -p "${PYPI_PASSWORD}" dist/*.whl