Skip to content

Commit 2a6266b

Browse files
committed
Collect pythonXY.dll from CI
1 parent fe68f46 commit 2a6266b

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/dll.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Collect pythonXY.dll
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
collect:
10+
name: Collect pythonXY.dll
11+
runs-on: windows-latest
12+
steps:
13+
- uses: actions/setup-python@v2
14+
with:
15+
python-version: "3.7"
16+
- uses: actions/setup-python@v2
17+
with:
18+
python-version: "3.8"
19+
- uses: actions/setup-python@v2
20+
with:
21+
python-version: "3.9"
22+
- uses: actions/setup-python@v2
23+
with:
24+
python-version: "3.10"
25+
- uses: actions/setup-python@v2
26+
with:
27+
python-version: "3.11-dev"
28+
- name: Copy pythonXY.dll
29+
shell: bash
30+
run: |
31+
for VER in 3.7 3.8 3.9 3.10 3.11; do
32+
VER_NUM=$(echo $VER | sed 's/\.//')
33+
PREFIX=$(py -$VER -c "import sys; print(sys.base_prefix, end='')")
34+
cp "$PREFIX/python$VER_NUM.dll" .
35+
done
36+
ls *.dll
37+
- name: Upload DLLs
38+
uses: actions/upload-artifact@v2
39+
with:
40+
name: dll
41+
path: |
42+
*.dll

0 commit comments

Comments
 (0)