Skip to content

MacOS Continuous Integration #6

MacOS Continuous Integration

MacOS Continuous Integration #6

name: MacOS Continuous Integration
on:
workflow_dispatch:
jobs:
build:
name: Build - ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: ['macos-latest']
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-python@v4
with:
python-version: 3.10.13
architecture: x64
- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: ${{ matrix.os }}
max-size: 100M
- name: use-ccache
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
- run: pip3 install wheel
- run: python3 build_submodules.py
- run: python3 setup.py bdist_wheel
- run: ls -l dist
- uses: actions/upload-artifact@v2
with:
name: ivy-wheels
path: dist/
publish:
name: Publish
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: ivy-wheels
path: dist/
- run: ls -l dist
- name: Publish package
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
verbose: true