Skip to content

Commit

Permalink
Try building pypy wheels on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
flozz committed Nov 22, 2024
1 parent 95c23e3 commit 54ff56f
Showing 1 changed file with 72 additions and 70 deletions.
142 changes: 72 additions & 70 deletions .github/workflows/python-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,42 @@ on:
tags:
- "v[0-9]+\\.[0-9]+\\.[0-9]+"
- "v[0-9]+\\.[0-9]+\\.[0-9]+-[0-9]+"
branches:
- fix-pypy-windows

jobs:

build_sdist:

name: "Source distribution"
runs-on: ubuntu-latest

steps:

- name: "Checkout the repository"
uses: actions/checkout@v4
with:
submodules: true

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: "Install python dependencies"
run: |
pip install setuptools
- name: "Build source distribution"
run: |
python setup.py sdist
- name: "Upload artifacts"
uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/
retention-days: 7
# build_sdist:
#
# name: "Source distribution"
# runs-on: ubuntu-latest
#
# steps:
#
# - name: "Checkout the repository"
# uses: actions/checkout@v4
# with:
# submodules: true
#
# - name: "Set up Python"
# uses: actions/setup-python@v5
# with:
# python-version: "3.13"
#
# - name: "Install python dependencies"
# run: |
# pip install setuptools
#
# - name: "Build source distribution"
# run: |
# python setup.py sdist
#
# - name: "Upload artifacts"
# uses: actions/upload-artifact@v4
# with:
# name: sdist
# path: dist/
# retention-days: 7

build_wheels:

Expand All @@ -49,25 +51,25 @@ jobs:
fail-fast: false
matrix:
include:
- os: windows-2019
- os: windows-2022
cibw_archs: AMD64
cibw_skip: pp*-win_amd64
- os: windows-2019
#cibw_skip: pp*-win_amd64
- os: windows-2022
cibw_archs: ARM64
- os: windows-2019
- os: windows-2022
cibw_archs: x86
- os: macos-12
cibw_archs: x86_64
- os: macos-12
cibw_archs: arm64
- os: macos-12
cibw_archs: universal2
- os: ubuntu-22.04
cibw_archs: x86_64
- os: ubuntu-22.04
cibw_archs: i686
- os: ubuntu-22.04
cibw_archs: aarch64
#- os: macos-12
#cibw_archs: x86_64
#- os: macos-12
#cibw_archs: arm64
#- os: macos-12
#cibw_archs: universal2
#- os: ubuntu-22.04
#cibw_archs: x86_64
#- os: ubuntu-22.04
#cibw_archs: i686
#- os: ubuntu-22.04
#cibw_archs: aarch64

steps:

Expand Down Expand Up @@ -96,26 +98,26 @@ jobs:
path: ./wheelhouse/*.whl
retention-days: 7

publish_pypi:

name: "Publish packages on PyPI"
runs-on: ubuntu-latest
needs:
- build_sdist
- build_wheels

steps:

- name: "Download artifacts"
uses: actions/download-artifact@v4

- name: "Move packages to the dist/ folder"
run: |
mkdir dist/
mv sdist/* dist/
mv wheels-*/*.whl dist/
- name: "Publish packages on PyPI"
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
# publish_pypi:
#
# name: "Publish packages on PyPI"
# runs-on: ubuntu-latest
# needs:
# - build_sdist
# - build_wheels
#
# steps:
#
# - name: "Download artifacts"
# uses: actions/download-artifact@v4
#
# - name: "Move packages to the dist/ folder"
# run: |
# mkdir dist/
# mv sdist/* dist/
# mv wheels-*/*.whl dist/
#
# - name: "Publish packages on PyPI"
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 54ff56f

Please sign in to comment.