Skip to content

kaizen: Publish wheels to GitHub Releases #16

kaizen: Publish wheels to GitHub Releases

kaizen: Publish wheels to GitHub Releases #16

Workflow file for this run

name: build
on:
push:
branches:
- main
tags:
- "*"
pull_request:
workflow_dispatch:
jobs:
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
- name: Build sdist and wheel
run: uv build -C "target=${{ matrix.target }}"
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
- name: Create a release
# if: startsWith(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
tag: vtest
commit: ${{ github.sha }}