Omit signalpower/ppm when undefined in -o 5; aiscat passes them throu… #13
Workflow file for this run
This file contains hidden or 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: aiscat — release wheels | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| target: | |
| description: "Which index to publish to" | |
| required: true | |
| default: "testpypi" | |
| type: choice | |
| options: [testpypi, pypi] | |
| push: | |
| tags: ["aiscat-v*.*.*"] | |
| jobs: | |
| build_wheels: | |
| name: Build wheels (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, ubuntu-24.04-arm, macos-14, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build wheels | |
| uses: pypa/cibuildwheel@v3.4.1 | |
| with: | |
| package-dir: python | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: wheels-${{ matrix.os }} | |
| path: ./wheelhouse/*.whl | |
| build_sdist: | |
| name: Build sdist | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install build | |
| run: python -m pip install build | |
| - name: Vendor upstream Source/ into python/ | |
| working-directory: python | |
| run: python scripts/prepare_sdist.py | |
| - name: Build sdist | |
| working-directory: python | |
| run: python -m build --sdist | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: sdist | |
| path: python/dist/*.tar.gz | |
| upload: | |
| name: Upload to ${{ inputs.target || 'pypi' }} | |
| needs: [build_wheels, build_sdist] | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: ${{ inputs.target || 'pypi' }} | |
| url: ${{ inputs.target == 'testpypi' && 'https://test.pypi.org/p/aiscat' || 'https://pypi.org/p/aiscat' }} | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| path: dist | |
| merge-multiple: true | |
| - name: Publish to TestPyPI | |
| if: inputs.target == 'testpypi' | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| repository-url: https://test.pypi.org/legacy/ | |
| packages-dir: dist | |
| - name: Publish to PyPI | |
| if: github.event_name == 'push' || inputs.target == 'pypi' | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| packages-dir: dist |