mirror of
https://github.com/logos-co/velopack.git
synced 2026-08-30 21:21:09 +00:00
173 lines
5.3 KiB
YAML
173 lines
5.3 KiB
YAML
name: Build Python
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
build-python-linux:
|
|
runs-on: ${{ matrix.platform.runner }}
|
|
strategy:
|
|
matrix:
|
|
platform:
|
|
- runner: ubuntu-22.04
|
|
target: x86_64
|
|
- runner: ubuntu-22.04
|
|
target: x86
|
|
- runner: ubuntu-22.04
|
|
target: aarch64
|
|
- runner: ubuntu-22.04
|
|
target: armv7
|
|
- runner: ubuntu-22.04
|
|
target: s390x
|
|
- runner: ubuntu-22.04
|
|
target: ppc64le
|
|
steps:
|
|
- uses: ./.github/actions/job-setup
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.x
|
|
- name: Build wheels
|
|
uses: PyO3/maturin-action@v1
|
|
with:
|
|
working-directory: src/lib-python
|
|
target: ${{ matrix.platform.target }}
|
|
args: --release --out dist
|
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
manylinux: auto
|
|
- name: Build free-threaded wheels
|
|
uses: PyO3/maturin-action@v1
|
|
with:
|
|
working-directory: src/lib-python
|
|
target: ${{ matrix.platform.target }}
|
|
args: --release --out dist -i python3.13t
|
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
manylinux: auto
|
|
- name: Upload wheels
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: wheels-linux-${{ matrix.platform.target }}
|
|
path: src/lib-python/dist
|
|
|
|
build-python-musllinux:
|
|
runs-on: ${{ matrix.platform.runner }}
|
|
strategy:
|
|
matrix:
|
|
platform:
|
|
- runner: ubuntu-22.04
|
|
target: x86_64
|
|
- runner: ubuntu-22.04
|
|
target: x86
|
|
- runner: ubuntu-22.04
|
|
target: aarch64
|
|
- runner: ubuntu-22.04
|
|
target: armv7
|
|
steps:
|
|
- uses: ./.github/actions/job-setup
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.x
|
|
- name: Build wheels
|
|
uses: PyO3/maturin-action@v1
|
|
with:
|
|
working-directory: src/lib-python
|
|
target: ${{ matrix.platform.target }}
|
|
args: --release --out dist
|
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
manylinux: musllinux_1_2
|
|
- name: Build free-threaded wheels
|
|
uses: PyO3/maturin-action@v1
|
|
with:
|
|
working-directory: src/lib-python
|
|
target: ${{ matrix.platform.target }}
|
|
args: --release --out dist -i python3.13t
|
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
manylinux: musllinux_1_2
|
|
- name: Upload wheels
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: wheels-musllinux-${{ matrix.platform.target }}
|
|
path: src/lib-python/dist
|
|
|
|
build-python-windows:
|
|
runs-on: ${{ matrix.platform.runner }}
|
|
strategy:
|
|
matrix:
|
|
platform:
|
|
- runner: windows-latest
|
|
target: x64
|
|
- runner: windows-latest
|
|
target: x86
|
|
steps:
|
|
- uses: ./.github/actions/job-setup
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.x
|
|
architecture: ${{ matrix.platform.target }}
|
|
- name: Build wheels
|
|
uses: PyO3/maturin-action@v1
|
|
with:
|
|
working-directory: src/lib-python
|
|
target: ${{ matrix.platform.target }}
|
|
args: --release --out dist
|
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
- name: Build free-threaded wheels
|
|
uses: PyO3/maturin-action@v1
|
|
with:
|
|
working-directory: src/lib-python
|
|
target: ${{ matrix.platform.target }}
|
|
args: --release --out dist -i python3.13t
|
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
- name: Upload wheels
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: wheels-windows-${{ matrix.platform.target }}
|
|
path: src/lib-python/dist
|
|
|
|
build-python-macos:
|
|
runs-on: ${{ matrix.platform.runner }}
|
|
strategy:
|
|
matrix:
|
|
platform:
|
|
- runner: macos-13
|
|
target: x86_64
|
|
- runner: macos-14
|
|
target: aarch64
|
|
steps:
|
|
- uses: ./.github/actions/job-setup
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.x
|
|
- name: Build wheels
|
|
uses: PyO3/maturin-action@v1
|
|
with:
|
|
working-directory: src/lib-python
|
|
target: ${{ matrix.platform.target }}
|
|
args: --release --out dist
|
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
- name: Build free-threaded wheels
|
|
uses: PyO3/maturin-action@v1
|
|
with:
|
|
working-directory: src/lib-python
|
|
target: ${{ matrix.platform.target }}
|
|
args: --release --out dist -i python3.13t
|
|
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
- name: Upload wheels
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: wheels-macos-${{ matrix.platform.target }}
|
|
path: src/lib-python/dist
|
|
|
|
build-python-sdist:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: ./.github/actions/job-setup
|
|
- name: Build sdist
|
|
uses: PyO3/maturin-action@v1
|
|
with:
|
|
working-directory: src/lib-python
|
|
command: sdist
|
|
args: --out dist
|
|
- name: Upload sdist
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: wheels-sdist
|
|
path: src/lib-python/dist |