Skip to content

Commit 4162cb6

Browse files
Add loongarch64-linux support
Signed-off-by: 吴小白 <[email protected]>
1 parent a376f32 commit 4162cb6

22 files changed

+243
-309
lines changed

Justfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ release-download-distributions token commit:
3232

3333
# Upload release artifacts to a GitHub release.
3434
release-upload-distributions token datetime tag:
35-
cargo run --release -- upload-release-distributions --token {{token}} --datetime {{datetime}} --tag {{tag}} --dist dist
35+
cargo run --release -- upload-release-distributions --token {{token}} --datetime {{datetime}} --tag {{tag}} --dist dist --ignore-missing
3636

3737
# "Upload" release artifacts to a GitHub release in dry-run mode (skip upload).
3838
release-upload-distributions-dry-run token datetime tag:
@@ -96,7 +96,7 @@ release-run token commit tag:
9696

9797
rm -rf dist
9898
just release-download-distributions {{token}} {{commit}}
99-
datetime=$(ls dist/cpython-3.10.*-x86_64-unknown-linux-gnu-install_only-*.tar.gz | awk -F- '{print $8}' | awk -F. '{print $1}')
99+
datetime=$(ls dist/cpython-3.10.*-loongarch64-unknown-linux-gnu-install_only-*.tar.gz | awk -F- '{print $8}' | awk -F. '{print $1}')
100100
just release-upload-distributions {{token}} ${datetime} {{tag}}
101101
just release-set-latest-release {{tag}}
102102

@@ -107,7 +107,7 @@ release-dry-run token commit tag:
107107

108108
rm -rf dist
109109
just release-download-distributions {{token}} {{commit}}
110-
datetime=$(ls dist/cpython-3.10.*-x86_64-unknown-linux-gnu-install_only-*.tar.gz | awk -F- '{print $8}' | awk -F. '{print $1}')
110+
datetime=$(ls dist/cpython-3.10.*-loongarch64-unknown-linux-gnu-install_only-*.tar.gz | awk -F- '{print $8}' | awk -F. '{print $1}')
111111
just release-upload-distributions-dry-run {{token}} ${datetime} {{tag}}
112112

113113
_download-stats mode:

ci-matrix.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
{"name": "build", "arch": "x86_64"},
2626
{"name": "build.cross", "arch": "x86_64"},
2727
{"name": "build.cross-riscv64", "arch": "x86_64"},
28+
{"name": "build.cross-loongarch64", "arch": "loongarch64"},
2829
{"name": "build.debian9", "arch": "aarch64"},
2930
{"name": "gcc", "arch": "x86_64"},
3031
{"name": "gcc.debian9", "arch": "aarch64"},

ci-runners.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
# Describes the runners that the CI system can use
22

3-
depot-ubuntu-22.04:
4-
arch: x86_64
5-
platform: linux
6-
free: false
3+
# depot-ubuntu-22.04:
4+
# arch: x86_64
5+
# platform: linux
6+
# free: false
77

88
depot-ubuntu-22.04-arm:
99
arch: aarch64
1010
platform: linux
1111
free: false
1212

13+
ubuntu-22.04:
14+
arch: x86_64
15+
platform: linux
16+
free: true
17+
18+
ubuntu-22.04-arm:
19+
arch: aarch64
20+
platform: linux
21+
free: true
22+
1323
depot-macos-latest:
1424
arch: x86_64
1525
platform: darwin

ci-targets.yaml

Lines changed: 2 additions & 291 deletions
Original file line numberDiff line numberDiff line change
@@ -38,153 +38,8 @@ darwin:
3838
minimum-python-version: "3.13"
3939

4040
linux:
41-
aarch64-unknown-linux-gnu:
42-
arch: aarch64
43-
libc: gnu
44-
python_versions:
45-
- "3.9"
46-
- "3.10"
47-
- "3.11"
48-
- "3.12"
49-
- "3.13"
50-
- "3.14"
51-
build_options:
52-
- debug
53-
- pgo+lto
54-
build_options_conditional:
55-
- options:
56-
- freethreaded+debug
57-
- freethreaded+pgo+lto
58-
minimum-python-version: "3.13"
59-
60-
armv7-unknown-linux-gnueabi:
61-
arch: armv7
62-
libc: gnu
63-
python_versions:
64-
- "3.9"
65-
- "3.10"
66-
- "3.11"
67-
- "3.12"
68-
- "3.13"
69-
- "3.14"
70-
build_options:
71-
- debug
72-
- noopt
73-
- lto
74-
build_options_conditional:
75-
- options:
76-
- freethreaded+debug
77-
- freethreaded+noopt
78-
- freethreaded+lto
79-
minimum-python-version: "3.13"
80-
81-
armv7-unknown-linux-gnueabihf:
82-
arch: armv7
83-
libc: gnu
84-
python_versions:
85-
- "3.9"
86-
- "3.10"
87-
- "3.11"
88-
- "3.12"
89-
- "3.13"
90-
- "3.14"
91-
build_options:
92-
- debug
93-
- noopt
94-
- lto
95-
build_options_conditional:
96-
- options:
97-
- freethreaded+debug
98-
- freethreaded+noopt
99-
- freethreaded+lto
100-
minimum-python-version: "3.13"
101-
102-
s390x-unknown-linux-gnu:
103-
arch: s390x
104-
libc: gnu
105-
python_versions:
106-
- "3.9"
107-
- "3.10"
108-
- "3.11"
109-
- "3.12"
110-
- "3.13"
111-
- "3.14"
112-
build_options:
113-
- debug
114-
- noopt
115-
- lto
116-
build_options_conditional:
117-
- options:
118-
- freethreaded+debug
119-
- freethreaded+noopt
120-
- freethreaded+lto
121-
minimum-python-version: "3.13"
122-
123-
ppc64le-unknown-linux-gnu:
124-
arch: ppc64le
125-
libc: gnu
126-
python_versions:
127-
- "3.9"
128-
- "3.10"
129-
- "3.11"
130-
- "3.12"
131-
- "3.13"
132-
- "3.14"
133-
build_options:
134-
- debug
135-
- noopt
136-
- lto
137-
build_options_conditional:
138-
- options:
139-
- freethreaded+debug
140-
- freethreaded+noopt
141-
- freethreaded+lto
142-
minimum-python-version: "3.13"
143-
144-
riscv64-unknown-linux-gnu:
145-
arch: riscv64
146-
libc: gnu
147-
python_versions:
148-
- "3.9"
149-
- "3.10"
150-
- "3.11"
151-
- "3.12"
152-
- "3.13"
153-
- "3.14"
154-
build_options:
155-
- debug
156-
- noopt
157-
- lto
158-
build_options_conditional:
159-
- options:
160-
- freethreaded+debug
161-
- freethreaded+noopt
162-
- freethreaded+lto
163-
minimum-python-version: "3.13"
164-
165-
x86_64-unknown-linux-gnu:
166-
arch: x86_64
167-
libc: gnu
168-
python_versions:
169-
- "3.9"
170-
- "3.10"
171-
- "3.11"
172-
- "3.12"
173-
- "3.13"
174-
- "3.14"
175-
build_options:
176-
- debug
177-
- pgo+lto
178-
build_options_conditional:
179-
- options:
180-
- freethreaded+debug
181-
- freethreaded+pgo+lto
182-
minimum-python-version: "3.13"
183-
run: true
184-
185-
x86_64_v2-unknown-linux-gnu:
186-
arch: x86_64
187-
arch_variant: v2
41+
loongarch64-unknown-linux-gnu:
42+
arch: loongarch64
18843
libc: gnu
18944
python_versions:
19045
- "3.9"
@@ -194,149 +49,6 @@ linux:
19449
- "3.13"
19550
- "3.14"
19651
build_options:
197-
- debug
198-
- pgo+lto
199-
build_options_conditional:
200-
- options:
201-
- freethreaded+debug
202-
- freethreaded+pgo+lto
203-
minimum-python-version: "3.13"
204-
run: true
205-
206-
x86_64_v3-unknown-linux-gnu:
207-
arch: x86_64
208-
arch_variant: v3
209-
libc: gnu
210-
python_versions:
211-
- "3.9"
212-
- "3.10"
213-
- "3.11"
214-
- "3.12"
215-
- "3.13"
216-
- "3.14"
217-
build_options:
218-
- debug
219-
- pgo+lto
220-
build_options_conditional:
221-
- options:
222-
- freethreaded+debug
223-
- freethreaded+pgo+lto
224-
minimum-python-version: "3.13"
225-
run: true
226-
227-
x86_64_v4-unknown-linux-gnu:
228-
arch: x86_64
229-
arch_variant: v4
230-
libc: gnu
231-
python_versions:
232-
- "3.9"
233-
- "3.10"
234-
- "3.11"
235-
- "3.12"
236-
- "3.13"
237-
- "3.14"
238-
build_options:
239-
- debug
240-
- pgo+lto
241-
build_options_conditional:
242-
- options:
243-
- freethreaded+debug
244-
- freethreaded+pgo+lto
245-
minimum-python-version: "3.13"
246-
run: true
247-
248-
x86_64-unknown-linux-musl:
249-
arch: x86_64
250-
libc: musl
251-
python_versions:
252-
- "3.9"
253-
- "3.10"
254-
- "3.11"
255-
- "3.12"
256-
- "3.13"
257-
- "3.14"
258-
build_options:
259-
- debug+static
260-
- noopt+static
261-
- lto+static
262-
- debug
263-
- noopt
264-
- lto
265-
build_options_conditional:
266-
- options:
267-
- freethreaded+debug
268-
- freethreaded+noopt
269-
- freethreaded+lto
270-
minimum-python-version: "3.13"
271-
run: true
272-
273-
x86_64_v2-unknown-linux-musl:
274-
arch: x86_64
275-
arch_variant: v2
276-
libc: musl
277-
python_versions:
278-
- "3.9"
279-
- "3.10"
280-
- "3.11"
281-
- "3.12"
282-
- "3.13"
283-
- "3.14"
284-
build_options:
285-
- debug+static
286-
- noopt+static
287-
- lto+static
288-
- debug
289-
- noopt
290-
- lto
291-
build_options_conditional:
292-
- options:
293-
- freethreaded+debug
294-
- freethreaded+noopt
295-
- freethreaded+lto
296-
minimum-python-version: "3.13"
297-
run: true
298-
299-
x86_64_v3-unknown-linux-musl:
300-
arch: x86_64
301-
arch_variant: v3
302-
libc: musl
303-
python_versions:
304-
- "3.9"
305-
- "3.10"
306-
- "3.11"
307-
- "3.12"
308-
- "3.13"
309-
- "3.14"
310-
build_options:
311-
- debug+static
312-
- noopt+static
313-
- lto+static
314-
- debug
315-
- noopt
316-
- lto
317-
build_options_conditional:
318-
- options:
319-
- freethreaded+debug
320-
- freethreaded+noopt
321-
- freethreaded+lto
322-
minimum-python-version: "3.13"
323-
run: true
324-
325-
x86_64_v4-unknown-linux-musl:
326-
arch: x86_64
327-
arch_variant: v4
328-
libc: musl
329-
python_versions:
330-
- "3.9"
331-
- "3.10"
332-
- "3.11"
333-
- "3.12"
334-
- "3.13"
335-
- "3.14"
336-
build_options:
337-
- debug+static
338-
- noopt+static
339-
- lto+static
34052
- debug
34153
- noopt
34254
- lto
@@ -346,7 +58,6 @@ linux:
34658
- freethreaded+noopt
34759
- freethreaded+lto
34860
minimum-python-version: "3.13"
349-
run: true
35061

35162
windows:
35263
i686-pc-windows-msvc:

0 commit comments

Comments
 (0)