Skip to content

GA-167 | public release prep #20

GA-167 | public release prep

GA-167 | public release prep #20

Workflow file for this run

name: Build Phenolrs Wheel
on:
pull_request:
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"] # ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev
pip install build maturin twine
- name: Build the package
run: maturin build --out dist --release --sdist --manylinux 2014 --interpreter python3.10 python3.11 python3.12
- name: ls
run: ls dist/*
- name: Publish to Test PyPi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD_TEST }}
run: twine upload --verbose --repository testpypi dist/*.whl
# - name: Publish to PyPi
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
# run: twine upload --verbose --repository pypi dist/*.whl
build-windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.10"] # ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install build maturin twine
- name: Build the package
run: maturin build --out dist --release --sdist --interpreter python3.10 python3.11 python3.12
- name: ls
run: ls dist/*
- name: Publish to Test PyPi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD_TEST }}
run: twine upload --verbose --repository testpypi dist\*.whl
# - name: Publish to PyPi
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
# run: twine upload --verbose --repository pypi dist\*.whl
build-macos:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, macos-13]
python-version: ["3.10"] # ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
brew install openssl
pip install build maturin twine
- name: Build the package
run: |
if [[ "${{ matrix.os }}" == "macos-13" ]]; then
maturin build --out dist --release --sdist --target x86_64-apple-darwin --interpreter python3.10 python3.11 python3.12
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
maturin build --out dist --release --sdist --target aarch64-apple-darwin --interpreter python3.10 python3.11 python3.12
fi
- name: ls
run: ls dist/*
- name: Publish to Test PyPi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD_TEST }}
run: twine upload --verbose --repository testpypi dist/*.whl
# - name: Publish to PyPi
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
# run: twine upload --verbose --repository pypi dist/*.whl