Skip to content

Commit

Permalink
Update wheel build
Browse files Browse the repository at this point in the history
  • Loading branch information
peekxc committed Dec 12, 2023
1 parent 61d24b0 commit 32ffc02
Showing 1 changed file with 3 additions and 128 deletions.
131 changes: 3 additions & 128 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ jobs:
# [os-image, os-name, os-arch]
- [ubuntu-latest, manylinux, x86_64]
- [macos-latest, macosx, x86_64]
- [macos-latest, macosx, arm64]
- [windows-2019, win, AMD64]
# os: [windows-latest]
# cibw_arch: ["AMD64"]
# cibw_python: ["cp38-*", "cp39-*", "cp310-*", "cp311-*"]
python: [["cp38", "3.8"], ["cp39", "3.9"], ["cp310", "3.10"], ["cp311", "3.11"]]
python: [["cp38", "3.8"], ["cp39", "3.9"], ["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"]]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -72,136 +73,10 @@ jobs:
# -Wl,-S equivalent to gcc's -Wl,--strip-debug
# LDFLAGS: "-Wl,-S"

- name: Save wheel location
run: |
echo "WHEEL_NAME=$(ls dist/*.whl | head -1)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v3
with:
name: wheels
path: |
dist
wheelhouse
dist/wheelhouse
${{ env.WHEEL_NAME }}
# build_macos_wheels:
# name: Build ${{ matrix.cibw_python }} ${{ matrix.cibw_arch }} wheels on ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# strategy:
# fail-fast: false
# matrix:
# os: [macos-latest]
# cibw_python: ["cp38-*", "cp39-*", "cp310-*", "cp311-*"]
# cibw_arch: ["x86_64", "arm64"] # TODO: add "universal2" once a universal2 libomp is available

# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# submodules: true

# - uses: actions/setup-python@v4
# name: Install Python
# with:
# python-version: "3.9"

# - name: Install cibuildwheel
# run: |
# python -m pip install cibuildwheel

# - name: Build wheels for CPython Mac OS
# run: |
# python -m cibuildwheel --output-dir dist
# env:
# CC: /usr/local/opt/llvm/bin/clang
# CXX: /usr/local/opt/llvm/bin/clang
# CIBW_BUILD: ${{ matrix.cibw_python }}
# CIBW_ARCHS_MACOS: ${{ matrix.cibw_arch }}
# CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
# CIBW_MANYLINUX_I686_IMAGE: manylinux1
# CIBW_TEST_SKIP: "*-macosx_arm64"

# - uses: actions/upload-artifact@v3
# with:
# name: wheels
# path: ./dist/*.whl

# build_linux_wheels:
# name: Build ${{ matrix.cibw_python }} ${{ matrix.cibw_arch }} wheels on ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest]
# cibw_python: ["cp38-*", "cp39-*", "cp310-*", "cp311-*"]
# cibw_manylinux: [manylinux2014]
# cibw_arch: ["x86_64"]

# steps:
# - uses: actions/checkout@v3
# with:
# submodules: true

# - uses: actions/setup-python@v4
# name: Install Python
# with:
# python-version: "3.9"

# - name: Install cibuildwheel
# run: |
# python -m pip install cibuildwheel

# - name: Build the wheel for Linux
# run: python -m cibuildwheel --output-dir dist
# env:
# CIBW_BUILD: ${{ matrix.cibw_python }}
# CIBW_ARCHS_LINUX: ${{ matrix.cibw_arch }}
# CIBW_SKIP: "*-musllinux_*"
# CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.cibw_manylinux }}
# CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.cibw_manylinux }}

# - uses: actions/upload-artifact@v3
# with:
# name: wheels
# path: ./dist/*.whl

# make_sdist:
# name: Make SDist
# runs-on: ubuntu-latest
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: true

# - uses: actions/setup-python@v4
# name: Install Python
# with:
# python-version: "3.9"

# - name: Build SDist
# run: pipx run build --sdist

# - uses: actions/upload-artifact@v3
# with:
# path: dist/*.tar.gz

# # upload_all:
# # needs: [build_linux_wheels, build_macos_wheels, build_windows_wheels, make_sdist]
# # environment: pypi
# # permissions:
# # id-token: write
# # runs-on: ubuntu-latest
# # if: github.event_name == 'release' && github.event.action == 'published'
# # steps:
# # - uses: actions/download-artifact@v3
# # with:
# # name: artifact
# # path: dist
# # - uses: pypa/gh-action-pypi-publish@release/v1
dist/wheelhouse

0 comments on commit 32ffc02

Please sign in to comment.