Skip to content

Commit

Permalink
Test: build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shizuo-kaji committed Jan 8, 2025
1 parent f5a896d commit e6366f7
Showing 1 changed file with 18 additions and 25 deletions.
43 changes: 18 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,35 +33,29 @@ jobs:


build_wheels:
name: Wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: astral-sh/setup-uv@v4

- uses: pypa/cibuildwheel@v2.22
env:
CIBW_ENABLE: cpython-prerelease
CIBW_ARCHS_WINDOWS: auto ARM64

- name: Verify clean directory
run: git diff --exit-code
shell: bash

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}
path: wheelhouse/*.whl

- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Build wheels
uses: pypa/cibuildwheel@v2.12.1
env:
CIBUILDWHEEL_BUILD: cp${{ matrix.python-version }}-*

- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: ./wheelhouse/*.whl

upload_all:
name: Upload if release
Expand Down Expand Up @@ -91,5 +85,4 @@ jobs:

- uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: true

attestations: true

0 comments on commit e6366f7

Please sign in to comment.