Skip to content

replaced macos-latest runner (now broken with older python version, b… #23

replaced macos-latest runner (now broken with older python version, b…

replaced macos-latest runner (now broken with older python version, b… #23

name: build-github-actions
on:
push:
tags:
- 'v*.*.*'
jobs:
macos:
runs-on: macos-13
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
target: ["x86_64", "universal2"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: x64
- uses: dtolnay/rust-toolchain@stable
- name: Build wheels - ${{ matrix.target }}
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist -m rust/Cargo.toml
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@b7e450da2a4b4cb4bfbae528f788167786cfcedf
with:
draft: true
prerelease: true
name: pysmmaprando v${{ env.RELEASE_VERSION }}
files: |
./dist/*.whl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
windows:
runs-on: windows-latest
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
target: [x64]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.target }}
- uses: dtolnay/rust-toolchain@stable
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist -m rust/Cargo.toml
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@b7e450da2a4b4cb4bfbae528f788167786cfcedf
with:
draft: true
prerelease: true
name: pysmmaprando v${{ env.RELEASE_VERSION }}
files: |
./dist/*.whl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
linux:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
target: ["x86_64", "aarch64"]
steps:
- uses: actions/checkout@v3
- name: Build x86_64 wheels
uses: PyO3/maturin-action@v1
if: ${{ matrix.target == 'x86_64' }}
with:
target: ${{ matrix.target }}
manylinux: auto
args: --release --out dist -m rust/Cargo.toml -i python${{ matrix.python }}
- name: Build aarch64 wheels
uses: PyO3/maturin-action@v1
# One of our deps, "ring", needs a newer sysroot than what "manylinux: auto" provides.
if: ${{ matrix.target == 'aarch64' }}
with:
target: ${{ matrix.target }}
manylinux: 2_28
args: --release --out dist -m rust/Cargo.toml -i python${{ matrix.python }}
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@b7e450da2a4b4cb4bfbae528f788167786cfcedf
with:
draft: true
prerelease: true
name: pysmmaprando v${{ env.RELEASE_VERSION }}
files: |
./dist/*.whl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}