Skip to content

bump version to 0.3.0 #27

bump version to 0.3.0

bump version to 0.3.0 #27

Workflow file for this run

# This file is autogenerated by maturin v1.2.0
# To update, run
#
# maturin generate-ci github
#
name: CI
on:
push:
branches:
- main
- master
tags:
- '*'
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, aarch64]
python-version: ['3.12']
steps:
- uses: actions/checkout@v3
- name: Install OpenSSL libs
run: sudo apt-get -y update && sudo apt-get install -y libssl-dev
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
manylinux: '2_28'
docker-options: |
-e CI_TARGET=${{ matrix.target }}
before-script-linux: |
echo "Get arch"
uname -m
echo "target_cc= $TARGET_CC"
echo "Check package manager"
apt-get -y update || yum list updates
echo "Install OpenSSL libs"
apt-get -y install pkg-config libssl-dev gfortran-aarch64-linux-gnu || yum -y install pkgconf openssl-devel
export FC=aarch64-linux-gnu-gfortran
if [ "$CI_TARGET" = "aarch64" ];then export OPENBLAS_TARGET=ARMV8; export OPENBLAS_CC=$TARGET_CC; export OPENBLAS_FC=$FC; export OPENBLAS_HOSTCC=gcc; export BLIS_CONFNAME=arm64; fi
echo "openblas targets"
echo "$OPENBLAS_TARGET"
echo "$OPENBLAS_CC"
echo "$OPENBLAS_FC"
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
windows:
runs-on: windows-latest
strategy:
matrix:
target: [x64]
python-version: ['3.12']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
macos:
runs-on: macos-latest
strategy:
matrix:
target: [x86_64, aarch64]
python-version: ['3.12']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist
- name: Upload sdist
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
release:
name: Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: [linux, windows, macos, sdist]
environment: release
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --skip-existing *