Skip to content

kaizen: Publish wheels to GitHub Releases #19

kaizen: Publish wheels to GitHub Releases

kaizen: Publish wheels to GitHub Releases #19

Workflow file for this run

name: build
on:
push:
branches:
- main
tags:
- "*"
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
- run: uv run pytest
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

Check failure on line 58 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 58, Col: 9): Job 'release' depends on unknown job '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 }}