Skip to content

Commit

Permalink
manylinux aarch64 native, more 3.13 cross artifact jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ijl committed Jan 18, 2025
1 parent 1534f8c commit 7f93738
Show file tree
Hide file tree
Showing 2 changed files with 226 additions and 201 deletions.
53 changes: 53 additions & 0 deletions .github/actions/manylinux/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: manylinux

inputs:
arch:
required: true
interpreter:
required: true
features:
required: true
compatibility:
required: true
publish:
required: true

runs:
using: "composite"
steps:

- name: Build and test
shell: bash
run: |
set -eou pipefail
mkdir dist
export PYTHON="${{ inputs.interpreter }}"
if [[ "${PYTHON}" == *t ]]; then
export PYTHON_PACKAGE="$(echo ${PYTHON} | sed 's/.$//')-freethreading"
else
export PYTHON_PACKAGE="${PYTHON}"
fi
export TARGET="${{ inputs.arch }}-unknown-linux-gnu"
export PATH="$PWD/.venv:$HOME/.cargo/bin:$PATH"
./script/install-fedora
source "${VENV}/bin/activate"
maturin build --release --strip \
--features="${{ inputs.features }}" \
--compatibility="${{ inputs.compatibility }}" \
--interpreter="${PYTHON}" \
--target="${TARGET}"
uv pip install ${CARGO_TARGET_DIR}/wheels/orjson*.whl
pytest -v test
./integration/run thread
./integration/run http
./integration/run init
cp ${CARGO_TARGET_DIR}/wheels/orjson*.whl dist
Loading

0 comments on commit 7f93738

Please sign in to comment.