Merge pull request #66 from PyO3/update-stable-abi #115
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Collect pythonXY.dll | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
collect: | |
name: Collect pythonXY.dll | |
runs-on: windows-latest | |
steps: | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "pypy3.8" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "pypy3.9" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "pypy3.10" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.7" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12-dev" | |
- name: Copy pythonXY.dll | |
shell: bash | |
run: | | |
set -e | |
for VER in 3.7 3.8 3.9 3.10 3.11 3.12; 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; 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@v3 | |
with: | |
name: dll | |
path: | | |
*.dll |