Skip to content

Commit

Permalink
update publish flow
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Jan 2, 2025
1 parent 9a5f0ad commit 557ffbe
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
release:
types: [created]
workflow_dispatch:
inputs:
publish_krec_rust:
description: 'Publish krec package'
type: boolean
default: true

permissions:
contents: read
Expand All @@ -15,12 +20,19 @@ concurrency:

jobs:
build-wheels:
name: Build ${{ matrix.arch }} wheels
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
name: Build and publish Python package (${{ matrix.os }})
timeout-minutes: 15
runs-on: ${{ matrix.os }}
arch: [x86_64, aarch64, s390x]
include:
- arch: x86_64
skip: "pp* *-musllinux*"
- arch: aarch64
skip: "pp* *-musllinux* cp313-*"
- arch: s390x
skip: "pp* *-musllinux* cp312-* cp313-*"

steps:
- name: Checkout code
Expand Down Expand Up @@ -49,7 +61,7 @@ jobs:

- name: Build package
env:
CIBW_SKIP: "pp* *-musllinux*" # Skip PyPy and musllinux builds
CIBW_SKIP: ${{ matrix.skip }}
CIBW_BEFORE_ALL_LINUX: |
curl -L https://github.com/protocolbuffers/protobuf/releases/download/v28.3/protoc-28.3-linux-x86_64.zip -o protoc.zip
unzip protoc.zip -d protoc
Expand All @@ -72,7 +84,7 @@ jobs:
- name: Upload wheel artifacts
uses: actions/upload-artifact@v3
with:
name: wheels-${{ matrix.os }}
name: wheels-${{ matrix.arch }}
path: |
dist/*.whl
Expand Down Expand Up @@ -139,6 +151,7 @@ jobs:
name: Build and publish Rust package
timeout-minutes: 10
runs-on: ubuntu-latest
if: ${{ inputs.publish_krec_rust }}

steps:
- name: Checkout code
Expand Down

0 comments on commit 557ffbe

Please sign in to comment.