Skip to content

kaizen: Publish wheels to GitHub Releases #20

kaizen: Publish wheels to GitHub Releases

kaizen: Publish wheels to GitHub Releases #20

Workflow file for this run

name: build
on:
push:
branches:
- main
tags:
- "*"
pull_request:
workflow_dispatch:
jobs:
test-and-build:
runs-on: ${{ matrix.runner }}
name: build (${{ matrix.python }}, ${{ matrix.target }})
strategy:
matrix:
python: ["3.12", "3.13"]
platform: [macos, linux]
include:
- platform: macos
target: aarch64-apple-darwin
runner: macos-latest
- platform: macos
target: x86_64-apple-darwin
runner: macos-latest
- platform: linux
target: aarch64-unknown-linux-gnu
runner: ubuntu-latest
- platform: linux
target: x86_64-unknown-linux-gnu
runner: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: astral-sh/setup-uv@v3
- run: uv python install ${{ matrix.python }}
- run: uv run pytest
- run: uv build -C "target=${{ matrix.target }}"
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
release:
# if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs:
- test-and-build
steps:
- name: Download wheels
uses: actions/download-artifact@v3
with:
name: wheels
path: dist
- name: Create a release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
tag: vtest
commit: ${{ github.sha }}