Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ijl committed Mar 11, 2025
1 parent a55dd97 commit 2e0689f
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 8 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@ jobs:
overwrite: true
retention-days: 1

- name: Debug
env:
CARGO_TARGET_DIR: "/tmp/orjson"
ORJSON_FEATURES: "avx512,unstable-simd,yyjson"
PYTHON: "${{ matrix.python.interpreter }}"
TARGET: "x86_64-unknown-linux-gnu"
run: |
export PATH="$PWD/.venv:$HOME/.cargo/bin:$PATH"
source .venv/bin/activate
script/debug
manylinux_aarch64:
runs-on: ubuntu-24.04-arm
container:
Expand Down Expand Up @@ -164,6 +175,17 @@ jobs:
overwrite: true
retention-days: 1

- name: Debug
env:
CARGO_TARGET_DIR: "/tmp/orjson"
ORJSON_FEATURES: "unstable-simd,yyjson"
PYTHON: "${{ matrix.python.interpreter }}"
TARGET: "aarch64-unknown-linux-gnu"
run: |
export PATH="$PWD/.venv:$HOME/.cargo/bin:$PATH"
source .venv/bin/activate
script/debug
manylinux_cross:
runs-on: ubuntu-24.04
timeout-minutes: 10
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/debug.yaml → .github/workflows/unusual.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
name: debug
name: unusual
on: push
env:
CARGO_UNSTABLE_SPARSE_REGISTRY: "true"
FORCE_COLOR: "1"
PIP_DISABLE_PIP_VERSION_CHECK: "1"
jobs:

debug:
unusual:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
profile: [
{ rust: "1.82", features: "" },
{ rust: "1.82", features: "--features=yyjson" },
{ rust: "nightly-2025-03-10", features: "--features=avx512,yyjson,unstable-simd" },
{ rust: "nightly-2025-03-10", features: "--features=unstable-simd" },
]
python: [
{ version: '3.13' },
{ version: '3.12' },
{ version: '3.9' },
]
env:
CC: "gcc"
CFLAGS: "-Os -fstrict-aliasing"
LDFLAGS: "-Wl,--as-needed"
ORJSON_DISABLE_YYJSON: "1"
CARGO_UNSTABLE_SPARSE_REGISTRY: "true"
UNSAFE_PYO3_SKIP_VERSION_CHECK: "1"
steps:
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ and i686/x86 wheels for Windows.
orjson does not and will not support PyPy, embedded Python builds for
Android/iOS, or PEP 554 subinterpreters.

orjson may support PEP 703 free-threading, but not earlier than 3.14, and
gated on confidence in no known defects rather than meeting experimental
status.

Releases follow semantic versioning and serializing a new object type
without an opt-in flag is considered a breaking change.

Expand Down
3 changes: 2 additions & 1 deletion script/debug
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ export CC="${CC:-clang}"
export LD="${LD:-lld}"
export TARGET="${TARGET:-x86_64-unknown-linux-gnu}"
export CARGO_TARGET_DIR="${CARGO_TARGET_DIR:-target}"
export ORJSON_FEATURES="${ORJSON_FEATURES:-avx512,unstable-simd,yyjson}"

export CFLAGS="-Os -fstrict-aliasing"

export RUSTFLAGS="-C panic=unwind -C linker=${CC} -C link-arg=-fuse-ld=${LD}"

maturin build --profile=dev --target=${TARGET} --release --features=avx512,unstable-simd,yyjson --interpreter "${PYTHON}"
maturin build --profile=dev --target=${TARGET} --release --features="${ORJSON_FEATURES}" --interpreter "${PYTHON}"

uv pip install ${CARGO_TARGET_DIR}/wheels/*.whl

Expand Down

0 comments on commit 2e0689f

Please sign in to comment.