8000 manylinux aarch64 native, more 3.13 cross artifact jobs · ijl/orjson@7f93738 · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit 7f93738

Browse files
committed
manylinux aarch64 native, more 3.13 cross artifact jobs
1 parent 1534f8c commit 7f93738

File tree

2 files changed

+226
-201
lines changed

2 files changed

+226
-201
lines changed

.github/actions/manylinux/action.yaml

Lines changed: 53 additions & 0 deletions
< 69F2 td data-grid-cell-id="diff-4d2968b757a606c73e9130a3576874f3a54bf897987598c86ab621252dcf4197-empty-44-0" data-selected="false" role="gridcell" style="background-color:var(--diffBlob-additionNum-bgColor, var(--diffBlob-addition-bgColor-num));text-align:center" tabindex="-1" valign="top" class="focusable-grid-cell diff-line-number position-relative left-side">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: manylinux
2+
3+
inputs:
4+
arch:
5+
required: true
6+
interpreter:
7+
required: true
8+
features:
9+
required: true
10+
compatibility:
11+
required: true
12+
publish:
13+
required: true
14+
15+
runs:
16+
using: "composite"
17+
steps:
18+
19+
- name: Build and test
20+
shell: bash
21+
run: |
22+
set -eou pipefail
23+
24+
mkdir dist
25+
26+
export PYTHON="${{ inputs.interpreter }}"
27+
if [[ "${PYTHON}" == *t ]]; then
28+
export PYTHON_PACKAGE="$(echo ${PYTHON} | sed 's/.$//')-freethreading"
29+
else
30+
export PYTHON_PACKAGE="${PYTHON}"
31+
fi
32+
33+
export TARGET="${{ inputs.arch }}-unknown-linux-gnu"
34+
export PATH="$PWD/.venv:$HOME/.cargo/bin:$PATH"
35+
36+
./script/install-fedora
37+
38+
source "${VENV}/bin/activate"
39+
40+
maturin build --release --strip \
41+
--features="${{ inputs.features }}" \
42+
--compatibility="${{ inputs.compatibility }}" \
43+
--interpreter="${PYTHON}" \
44+
--target="${TARGET}"
45+
46+
uv pip install ${CARGO_TARGET_DIR}/wheels/orjson*.whl
47+
48+
pytest -v test
49+
./integration/run thread
50+
./integration/run http
51+
./integration/run init
52+
53+
cp ${CARGO_TARGET_DIR}/wheels/orjson*.whl dist

0 commit comments

Comments
 (0)
0