forked from ijl/orjson
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdrone.yml
More file actions
121 lines (121 loc) · 5.17 KB
/
Copy pathdrone.yml
File metadata and controls
121 lines (121 loc) · 5.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# the repetition should be a function using jsonnet, but drone still
# expects YAML even with .jsonnet extension, yielding a parse error
kind: pipeline
name: linux_python310_aarch64
platform:
arch: arm64
steps:
- name: test
image: quay.io/pypa/manylinux_2_28_aarch64:latest
environment:
PATH: "/root/.local/bin:/root/.cargo/bin:/opt/python/cp310-cp310/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin"
MATURIN_USERNAME:
from_secret: twine_username
MATURIN_PASSWORD:
from_secret: twine_password
CC: "clang"
CFLAGS: "-O2 -fno-plt -flto=thin"
LDFLAGS: "-O2 -flto=thin -fuse-ld=lld -Wl,--as-needed"
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld"
commands:
- yum update -y && yum install -y clang lld
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2022-06-22 --profile minimal -y
- python3.10 -m pip install --user --upgrade pip "maturin>=0.12.19,<0.13" wheel
- cargo fetch
- maturin build --no-sdist --release --strip --compatibility manylinux_2_28 --cargo-extra-args="--features=unstable-simd,yyjson" --interpreter python3.10
- python3.10 -m pip install --user target/wheels/orjson*.whl
- python3.10 -m pip install --user -r test/requirements.txt -r integration/requirements.txt
- pytest -s -rxX -v test
- ./integration/run thread
- ./integration/run http
- ./ci/deploy target/wheels/*.whl
---
kind: pipeline
name: linux_python39_aarch64
platform:
arch: arm64
steps:
- name: test
image: quay.io/pypa/manylinux_2_28_aarch64:latest
environment:
PATH: "/root/.local/bin:/root/.cargo/bin:/opt/python/cp39-cp39/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin"
MATURIN_USERNAME:
from_secret: twine_username
MATURIN_PASSWORD:
from_secret: twine_password
CC: "clang"
CFLAGS: "-O2 -fno-plt -flto=thin"
LDFLAGS: "-O2 -flto=thin -fuse-ld=lld -Wl,--as-needed"
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld"
commands:
- yum update -y && yum install -y clang lld
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2022-06-22 --profile minimal -y
- python3.9 -m pip install --user --upgrade pip "maturin>=0.12.19,<0.13" wheel
- cargo fetch
- maturin build --no-sdist --release --strip --compatibility manylinux_2_28 --cargo-extra-args="--features=unstable-simd,yyjson" --interpreter python3.9
- python3.9 -m pip install --user target/wheels/orjson*.whl
- python3.9 -m pip install --user -r test/requirements.txt -r integration/requirements.txt
- pytest -s -rxX -v test
- ./integration/run thread
- ./integration/run http
- ./ci/deploy target/wheels/*.whl
---
kind: pipeline
name: linux_python38_aarch64
platform:
arch: arm64
steps:
- name: test
image: quay.io/pypa/manylinux_2_28_aarch64:latest
environment:
PATH: "/root/.local/bin:/root/.cargo/bin:/opt/python/cp38-cp38/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin"
MATURIN_USERNAME:
from_secret: twine_username
MATURIN_PASSWORD:
from_secret: twine_password
CC: "clang"
CFLAGS: "-O2 -fno-plt -flto=thin"
LDFLAGS: "-O2 -flto=thin -fuse-ld=lld -Wl,--as-needed"
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld"
commands:
- yum update -y && yum install -y clang lld
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2022-06-22 --profile minimal -y
- python3.8 -m pip install --user --upgrade pip "maturin>=0.12.19,<0.13" wheel
- cargo fetch
- maturin build --no-sdist --release --strip --compatibility manylinux_2_28 --cargo-extra-args="--features=unstable-simd,yyjson" --interpreter python3.8
- python3.8 -m pip install --user target/wheels/orjson*.whl
- python3.8 -m pip install --user -r test/requirements.txt -r integration/requirements.txt
- pytest -s -rxX -v test
- ./integration/run thread
- ./integration/run http
- ./ci/deploy target/wheels/*.whl
---
kind: pipeline
name: linux_python37_aarch64
platform:
arch: arm64
steps:
- name: test
image: quay.io/pypa/manylinux_2_28_aarch64:latest
environment:
PATH: "/root/.local/bin:/root/.cargo/bin:/opt/python/cp37-cp37m/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin"
MATURIN_USERNAME:
from_secret: twine_username
MATURIN_PASSWORD:
from_secret: twine_password
CC: "clang"
CFLAGS: "-O2 -fno-plt -flto=thin"
LDFLAGS: "-O2 -flto=thin -fuse-ld=lld -Wl,--as-needed"
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld"
commands:
- yum update -y && yum install -y clang lld
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2022-06-22 --profile minimal -y
- python3.7 -m pip install --user --upgrade pip "maturin>=0.12.19,<0.13" wheel
- cargo fetch
- maturin build --no-sdist --release --strip --compatibility manylinux_2_28 --cargo-extra-args="--features=unstable-simd,yyjson" --interpreter python3.7
- python3.7 -m pip install --user target/wheels/orjson*.whl
- python3.7 -m pip install --user -r test/requirements.txt -r integration/requirements.txt
- pytest -s -rxX -v test
- ./integration/run thread
- ./integration/run http
- ./ci/deploy target/wheels/*.whl