Skip to content

Merge pull request #127 from ymyzk/artifact-v4 #309

Merge pull request #127 from ymyzk/artifact-v4

Merge pull request #127 from ymyzk/artifact-v4 #309

Workflow file for this run

name: Packaging
on: [push]
jobs:
build_sdist:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
python-version: ['3.11']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install --upgrade build
- name: Create packages
run: python -m build -s
- uses: actions/upload-artifact@v4
with:
name: wsgi_lineprof_dist_sdist
path: dist
build_wheel:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, windows-2022, macos-12]
arch: [auto]
include:
- os: ubuntu-20.04
arch: aarch64
- os: windows-2022
arch: ARM64
- os: macos-12
arch: arm64
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
if: runner.os == 'Linux' && matrix.arch == 'aarch64'
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS: ${{ matrix.arch }}
- uses: actions/upload-artifact@v4
with:
name: wsgi_lineprof_dist_wheel_${{ matrix.os }}_${{ matrix.arch }}
path: ./wheelhouse/*.whl
build:
needs:
- build_sdist
- build_wheel
runs-on: ubuntu-latest
steps:
- uses: actions/upload-artifact/merge@v4
with:
name: wsgi_lineprof_dist
pattern: wsgi_lineprof_dist_*
- uses: actions/download-artifact@v4
with:
name: wsgi_lineprof_dist
path: dist
- name: Show result
run: ls -l dist