Build #82
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 | |
on: | |
workflow_run: | |
workflows: Test | |
branches: main | |
# tags: v[\d.]+ | |
types: completed | |
env: | |
PYCURL_SSL_LIBRARY: openssl | |
PYLOAD_BUILD: ${{ github.run_number }} | |
jobs: | |
sdist: | |
name: Build source | |
if: github.event.workflow_run.conclusion == 'success' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up Python environment | |
uses: actions/setup-python@v4 | |
- name: Install Python dependencies | |
run: python -m pip install --upgrade pip setuptools | |
- name: Build pyLoad | |
run: python setup.py -q sdist | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist--${{ github.run_id }} | |
path: dist/*.tar.gz | |
bdist: | |
name: Build binary | |
if: github.event.workflow_run.conclusion == 'success' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up Python environment | |
uses: actions/setup-python@v4 | |
- name: Install Python dependencies | |
run: python -m pip install --upgrade pip setuptools wheel Babel Jinja2 | |
- name: Build pyLoad | |
run: python setup.py -q build_locale bdist_wheel | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist--${{ github.run_id }} | |
path: dist/*.whl |