Skip to content

Commit

Permalink
fix: try publish
Browse files Browse the repository at this point in the history
  • Loading branch information
dirvine committed Nov 30, 2024
1 parent 1d0a82b commit 690a83c
Showing 1 changed file with 118 additions and 118 deletions.
236 changes: 118 additions & 118 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,133 +107,133 @@ jobs:
name: wheels-linux-${{ matrix.target }}-py${{ matrix.python-version }}
path: dist

linux-cross:
runs-on: ubuntu-latest
strategy:
matrix:
target: [aarch64, armv7, s390x, ppc64le]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build wheels
uses: messense/maturin-action@v1
env:
PYO3_CROSS_PYTHON_VERSION: ${{ matrix.python-version }}
PYO3_CROSS: "1"
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
RUSTFLAGS: "-C target-feature=+crt-static"
with:
target: ${{ matrix.target }}
manylinux: auto
args: --release --out dist -i python${{ matrix.python-version }}
maturin-version: "v0.13.0"
- name: Install built wheel
if: matrix.target == 'aarch64'
uses: addnab/docker-run-action@v3
with:
image: alpine:latest
options: -v ${{ github.workspace }}:/io -w /io
run: |
# Install system dependencies
apk add --no-cache \
python3 \
py3-pip \
gcc \
musl-dev \
python3-dev \
rust \
cargo \
openssl-dev \
pkgconfig
# linux-cross:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# target: [aarch64, armv7, s390x, ppc64le]
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Build wheels
# uses: messense/maturin-action@v1
# env:
# PYO3_CROSS_PYTHON_VERSION: ${{ matrix.python-version }}
# PYO3_CROSS: "1"
# CARGO_NET_GIT_FETCH_WITH_CLI: "true"
# RUSTFLAGS: "-C target-feature=+crt-static"
# with:
# target: ${{ matrix.target }}
# manylinux: auto
# args: --release --out dist -i python${{ matrix.python-version }}
# maturin-version: "v0.13.0"
# - name: Install built wheel
# if: matrix.target == 'aarch64'
# uses: addnab/docker-run-action@v3
# with:
# image: alpine:latest
# options: -v ${{ github.workspace }}:/io -w /io
# run: |
# # Install system dependencies
# apk add --no-cache \
# python3 \
# py3-pip \
# gcc \
# musl-dev \
# python3-dev \
# rust \
# cargo \
# openssl-dev \
# pkgconfig

# Create and activate virtual environment
python3 -m venv /venv
. /venv/bin/activate
# # Create and activate virtual environment
# python3 -m venv /venv
# . /venv/bin/activate

# Install Python dependencies
pip install --upgrade pip wheel setuptools
pip install pytest click>=8.0.0
# # Install Python dependencies
# pip install --upgrade pip wheel setuptools
# pip install pytest click>=8.0.0

# Install in development mode
cd /io
pip install -e .
# # Install in development mode
# cd /io
# pip install -e .

# Run tests
python -m pytest -v
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-linux-cross-${{ matrix.target }}-py${{ matrix.python-version }}
path: dist
# # Run tests
# python -m pytest -v
# - name: Upload wheels
# uses: actions/upload-artifact@v4
# with:
# name: wheels-linux-cross-${{ matrix.target }}-py${{ matrix.python-version }}
# path: dist

musllinux-cross:
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- target: aarch64-unknown-linux-musl
arch: aarch64
- target: armv7-unknown-linux-musleabihf
arch: armv7
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build wheels
uses: messense/maturin-action@v1
env:
PYO3_CROSS_PYTHON_VERSION: ${{ matrix.python-version }}
PYO3_CROSS: "1"
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
RUSTFLAGS: "-C target-feature=+crt-static"
with:
target: ${{ matrix.platform.target }}
manylinux: musllinux_1_1
args: --release --out dist -i python${{ matrix.python-version }}
maturin-version: "v0.13.0"
- name: Install built wheel
if: matrix.target == 'aarch64'
uses: addnab/docker-run-action@v3
with:
image: alpine:latest
options: -v ${{ github.workspace }}:/io -w /io
run: |
# Install system dependencies
apk add --no-cache \
python3 \
py3-pip \
gcc \
musl-dev \
python3-dev \
rust \
cargo \
openssl-dev \
pkgconfig
# musllinux-cross:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# platform:
# - target: aarch64-unknown-linux-musl
# arch: aarch64
# - target: armv7-unknown-linux-musleabihf
# arch: armv7
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Build wheels
# uses: messense/maturin-action@v1
# env:
# PYO3_CROSS_PYTHON_VERSION: ${{ matrix.python-version }}
# PYO3_CROSS: "1"
# CARGO_NET_GIT_FETCH_WITH_CLI: "true"
# RUSTFLAGS: "-C target-feature=+crt-static"
# with:
# target: ${{ matrix.platform.target }}
# manylinux: musllinux_1_1
# args: --release --out dist -i python${{ matrix.python-version }}
# maturin-version: "v0.13.0"
# - name: Install built wheel
# if: matrix.target == 'aarch64'
# uses: addnab/docker-run-action@v3
# with:
# image: alpine:latest
# options: -v ${{ github.workspace }}:/io -w /io
# run: |
# # Install system dependencies
# apk add --no-cache \
# python3 \
# py3-pip \
# gcc \
# musl-dev \
# python3-dev \
# rust \
# cargo \
# openssl-dev \
# pkgconfig

# Create and activate virtual environment
python3 -m venv /venv
. /venv/bin/activate
# # Create and activate virtual environment
# python3 -m venv /venv
# . /venv/bin/activate

# Install Python dependencies
pip install --upgrade pip wheel setuptools
pip install pytest click>=8.0.0
# # Install Python dependencies
# pip install --upgrade pip wheel setuptools
# pip install pytest click>=8.0.0

# Install in development mode
cd /io
pip install -e .
# # Install in development mode
# cd /io
# pip install -e .

# Run tests
python -m pytest -v
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-musllinux-cross-${{ matrix.platform.target }}-py${{ matrix.python-version }}
path: dist
# # Run tests
# python -m pytest -v
# - name: Upload wheels
# uses: actions/upload-artifact@v4
# with:
# name: wheels-musllinux-cross-${{ matrix.platform.target }}-py${{ matrix.python-version }}
# path: dist

sdist:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 690a83c

Please sign in to comment.