1
1
name : artifact
2
2
on : push
3
3
env :
4
- RUST_TOOLCHAIN : " nightly-2024-04-30 "
4
+ RUST_TOOLCHAIN : " nightly-2024-06-10 "
5
5
CARGO_UNSTABLE_SPARSE_REGISTRY : " true"
6
6
UNSAFE_PYO3_SKIP_VERSION_CHECK : " 1"
7
7
jobs :
38
38
39
39
- run : python3 -m pip install --user -r test/requirements.txt -r integration/requirements.txt mypy
40
40
41
- - run : pytest -s -rxX -v -n 4 test
41
+ - run : pytest -s -rxX -v -n 2 test
42
42
env :
43
43
PYTHONMALLOC : " debug"
44
44
72
72
CC : " clang"
73
73
CFLAGS : " -Os -fstrict-aliasing -fno-plt -flto=full -emit-llvm"
74
74
LDFLAGS : " -fuse-ld=lld -Wl,-plugin-opt=also-emit-llvm -Wl,--as-needed -Wl,-zrelro,-znow"
75
- RUSTFLAGS : " -C linker=clang -C link-arg=-fuse-ld=lld -C linker-plugin-lto -C lto=fat -C link-arg=-Wl,-zrelro,-znow -Z mir-opt-level=4 -Z virtual-function-elimination -Z threads=4 -D warnings"
75
+ RUSTFLAGS : " -C linker=clang -C link-arg=-fuse-ld=lld -C linker-plugin-lto -C lto=fat -C link-arg=-Wl,-zrelro,-znow -Z mir-opt-level=4 -Z virtual-function-elimination -Z threads=2 -D warnings"
76
76
PATH : " /__w/orjson/orjson/.venv/bin:/github/home/.cargo/bin:/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
77
77
container :
78
78
image : fedora:41
@@ -108,7 +108,7 @@ jobs:
108
108
--target=x86_64-unknown-linux-gnu
109
109
uv pip install target/wheels/orjson*.whl
110
110
111
- - run : pytest -s -rxX -v -n 4 test
111
+ - run : pytest -s -rxX -v -n 2 test
112
112
env :
113
113
PYTHONMALLOC : " debug"
114
114
@@ -146,9 +146,11 @@ jobs:
146
146
- target : aarch64-unknown-linux-musl
147
147
arch : aarch64
148
148
platform : linux/arm64
149
+ features : no-panic,unstable-simd,unwind,yyjson
149
150
- target : x86_64-unknown-linux-musl
150
151
arch : x86_64
151
152
platform : linux/amd64
153
+ features : avx512,no-panic,unstable-simd,unwind,yyjson
152
154
steps :
153
155
- uses : actions/checkout@v4
154
156
@@ -163,13 +165,13 @@ jobs:
163
165
CC : " gcc"
164
166
CFLAGS : " -Os"
165
167
LDFLAGS : " -Wl,--as-needed"
166
- RUSTFLAGS : " -Z mir-opt-level=4 -Z threads=4 -D warnings -C target-feature=-crt-static"
168
+ RUSTFLAGS : " -C lto=fat - Z mir-opt-level=4 -Z virtual-function-elimination -Z threads=2 -D warnings -C target-feature=-crt-static"
167
169
with :
168
- rust-toolchain : nightly-2024-04-30
170
+ rust-toolchain : nightly-2024-06-10
169
171
rustup-components : rust-src
170
172
target : ${{ matrix.platform.target }}
171
173
manylinux : musllinux_1_2
172
- args : --release --strip --out=dist --features=no-panic,unstable-simd,unwind,yyjson -i python${{ matrix.python.version }}
174
+ args : --release --strip --out=dist --features=${{ matrix.platform.features }} -i python${{ matrix.python.version }}
173
175
174
176
- name : QEMU
175
177
if : matrix.platform.arch != 'x86_64'
@@ -192,7 +194,7 @@ jobs:
192
194
venv/bin/pip install -U pip wheel
193
195
venv/bin/pip install -r test/requirements.txt
194
196
venv/bin/pip install orjson --no-index --find-links dist/ --force-reinstall
195
- venv/bin/python -m pytest -s -rxX -v -n 4 test
197
+ venv/bin/python -m pytest -s -rxX -v -n 2 test
196
198
197
199
- name : Store wheels
198
200
if : " startsWith(github.ref, 'refs/tags/')"
@@ -254,7 +256,7 @@ jobs:
254
256
RUSTFLAGS : " ${{ matrix.target.rustflags }}"
255
257
with :
256
258
target : ${{ matrix.target.target }}
257
- rust-toolchain : nightly-2024-04-30
259
+ rust-toolchain : nightly-2024-06-10
258
260
rustup-components : rust-src
259
261
manylinux : auto
260
262
args : --release --strip --out=dist --features=${{ matrix.target.features }} -i python${{ matrix.python.version }}
@@ -317,7 +319,7 @@ jobs:
317
319
318
320
- uses : dtolnay/rust-toolchain@master
319
321
with :
320
- toolchain : " nightly-2024-04-30 "
322
+ toolchain : " nightly-2024-06-10 "
321
323
targets : " aarch64-apple-darwin, x86_64-apple-darwin"
322
324
components : " rust-src"
323
325
@@ -387,7 +389,7 @@ jobs:
387
389
388
390
- uses : dtolnay/rust-toolchain@master
389
391
with :
390
- toolchain : " nightly-2024-04-30 "
392
+ toolchain : " nightly-2024-06-10 "
391
393
targets : " aarch64-apple-darwin, x86_64-apple-darwin"
392
394
components : " rust-src"
393
395
0 commit comments