-
Notifications
You must be signed in to change notification settings - Fork 3
/
.cirrus.yml
130 lines (97 loc) · 2.86 KB
/
.cirrus.yml
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
122
123
124
125
126
127
128
129
130
# Build source distribution
task:
name: "Build sdist for unsupported platforms"
container:
image: python:3.11
cpu: 1
memory: 1G
install_script:
- python setup.py sdist
script:
- python3 -m pip install -U --force-reinstall --no-index --find-links=./dist pysdl2-dll
- python3 -m pip install pytest git+https://github.com/py-sdl/py-sdl2.git
- pytest -v -rP
deploy_script: |
if [ ! -z ${CIRRUS_TAG:-} ]; then
python3 -m pip install twine
python3 -m twine upload --skip-existing dist/*.tar.gz
fi
binaries_artifacts:
path: "dist/*"
# Build macOS wheel
task:
name: "Build macOS (x86_64 & ARM64) wheels"
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
install_script:
- brew install python
- python3 -m pip config set global.break-system-packages true
- python3 -m pip install -U setuptools wheel twine
- python3 setup.py bdist_wheel
- MACOS_LEGACY_WHEEL=1 python3 setup.py bdist_wheel
script:
- python3 -m pip install -U --force-reinstall --no-index --find-links=./dist pysdl2-dll
- python3 -m pip install pytest git+https://github.com/py-sdl/py-sdl2.git
- pytest -v -rP
deploy_script: |
if [ ! -z ${CIRRUS_TAG:-} ]; then
python3 -m twine upload --skip-existing dist/*.whl
fi
binaries_artifacts:
path: "dist/*"
# Build 32-bit x86 manylinux wheel
task:
name: "Build $SDL2DLL_PLATFORM (i686) wheel"
env:
SDL2DLL_PLATFORM: manylinux2014
container:
image: quay.io/pypa/$SDL2DLL_PLATFORM_i686
memory: 1G
script:
- linux32 ./manylinux.sh
# NOTE: cryptography 2.6.1 is the last version with a 32-bit wheel
deploy_script: |
if [ ! -z ${CIRRUS_TAG:-} ]; then
python3.9 -m pip install cryptography==2.6.1
python3.9 -m pip install twine
python3.9 -m twine upload --skip-existing dist/*.whl
fi
binaries_artifacts:
path: "dist/*"
# Build 64-bit x86 manylinux wheels
task:
name: "Build $SDL2DLL_PLATFORM (x86_64) wheel"
env:
matrix:
- SDL2DLL_PLATFORM: manylinux2014
- SDL2DLL_PLATFORM: manylinux_2_28
container:
image: quay.io/pypa/$SDL2DLL_PLATFORM_x86_64
memory: 2G
script:
- ./manylinux.sh
deploy_script: |
if [ ! -z ${CIRRUS_TAG:-} ]; then
python3.9 -m pip install twine
python3.9 -m twine upload --skip-existing dist/*.whl
fi
binaries_artifacts:
path: "dist/*"
# Build 64-bit ARM manylinux wheel
task:
name: "Build $SDL2DLL_PLATFORM (ARM64) wheel"
env:
matrix:
- SDL2DLL_PLATFORM: manylinux_2_28
arm_container:
image: quay.io/pypa/$SDL2DLL_PLATFORM_aarch64
memory: 2G
script:
- ./manylinux.sh
deploy_script: |
if [ ! -z ${CIRRUS_TAG:-} ]; then
python3.9 -m pip install twine
python3.9 -m twine upload --skip-existing dist/*.whl
fi
binaries_artifacts:
path: "dist/*"