-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (48 loc) · 1.4 KB
/
dll.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
name: Collect pythonXY.dll
on: workflow_dispatch
jobs:
collect:
name: Collect pythonXY.dll
runs-on: windows-latest
steps:
- uses: Quansight-Labs/setup-python@v5
with:
python-version: |
pypy3.8
pypy3.9
pypy3.10
pypy3.11
3.7
3.8
3.9
3.10
3.11
3.12
3.13
3.13t
allow-prereleases: true
- name: Copy pythonXY.dll
shell: bash
run: |
set -e
for VER in 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3.13t; do
VER_NUM=$(echo $VER | sed 's/\.//')
PREFIX=$(py -$VER -c "import sys; print(sys.base_prefix, end='')")
cp "$PREFIX/python$VER_NUM.dll" .
done
# PyPy 3.7 & 3.8 uses libpypy3-c.dll
PREFIX=$(pypy3.8 -c "import sys; print(sys.base_prefix, end='')")
cp "$PREFIX/libpypy3-c.dll" .
# PyPy 3.9 and later use libpypy3.Y-c.dll
for VER in 3.9 3.10 3.11; do
VER_NUM=$(echo $VER | sed 's/\.//')
PREFIX=$(pypy$VER -c "import sys; print(sys.base_prefix, end='')")
cp "$PREFIX/libpypy$VER-c.dll" .
done
ls *.dll
- name: Upload DLLs
uses: actions/upload-artifact@v4
with:
name: dll
path: |
*.dll