ci: try to make python release

not for macos because we're rate limited now, re-enable it later
This commit is contained in:
əlemi 2024-09-09 21:11:31 +02:00
parent e6ad4ae6ed
commit 8e76eeec30
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 31 additions and 32 deletions

View file

@ -112,34 +112,34 @@ jobs:
name: codemp-py-windows-${{ matrix.platform.target }}
path: dist/py
macos:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
#- runner: macos-12
# target: x86_64
- runner: macos-14
target: aarch64
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-protoc@v3
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
working-directory: dist/py
target: ${{ matrix.platform.target }}
container: 'off'
args: --release --out .
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: codemp-py-macos-${{ matrix.platform.target }}
path: dist/py
#macos:
# runs-on: ${{ matrix.platform.runner }}
# strategy:
# matrix:
# platform:
# #- runner: macos-12
# # target: x86_64
# - runner: macos-14
# target: aarch64
# steps:
# - uses: actions/checkout@v4
# - uses: arduino/setup-protoc@v3
# - uses: actions/setup-python@v5
# with:
# python-version: 3.x
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# working-directory: dist/py
# target: ${{ matrix.platform.target }}
# container: 'off'
# args: --release --out .
# sccache: 'true'
# - name: Upload wheels
# uses: actions/upload-artifact@v4
# with:
# name: codemp-py-macos-${{ matrix.platform.target }}
# path: dist/py
sdist:
runs-on: ubuntu-latest
@ -164,10 +164,9 @@ jobs:
- uses: actions/download-artifact@v4
with:
pattern: codemp-py-*
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
- uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing codemp-py-*/*

View file

@ -1,6 +1,6 @@
[project]
name = "codemp"
version = "0.0.5"
version = "0.0.6"
description = "code multiplexer"
requires-python = ">= 3.8"
license = "GPL-3.0-only"