-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
manylinux aarch64 native, more 3.13 cross artifact jobs
- Loading branch information
Showing
2 changed files
with
226 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.