Skip to content

Commit

Permalink
Publish only ubuntu wheels for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mmghannam committed Dec 8, 2023
1 parent 7957bfd commit 87089c0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 12 deletions.
43 changes: 32 additions & 11 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
arch: x86_64
# - os: macos-latest
# arch: arm64
- os: macos-latest
arch: x86_64
- os: windows-latest
arch: AMD64
# - os: macos-latest
# arch: x86_64
# - os: windows-latest
# arch: AMD64



Expand All @@ -30,15 +30,36 @@ jobs:
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: "pytest {project}/tests"

# - uses: actions/upload-artifact@v3
# with:
# path: ./wheelhouse/*.whl

- name: "Publish to test.pypi.org"
uses: pypa/gh-action-pypi-publish@release/v1
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Build sdist
shell: bash -l {0}
run: pipx run build --sdist

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

upload_pypi:
needs: [build_wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository_url: https://test.pypi.org/legacy/
user: __token__
password: ${{ secrets.TESTPYPI_API_TOKEN }}
verbose: true
packages_dir: ./wheelhouse/
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ skip="pp* cp312*" # currently doesn't work with PyPy or CPython 3.12


[tool.cibuildwheel.linux]
skip="pp* cp312* *musllinux*"
skip="pp* cp312* cp36* cp37* cp38* cp39* cp310* *musllinux*"
before-all = [
"(apt-get update && apt-get install --yes wget) || yum install -y wget zlib libgfortran || brew install wget",
"wget https://github.com/mmghannam/scip/releases/download/v8.0.3/libscip-centos.zip -O scip.zip",
Expand Down

0 comments on commit 87089c0

Please sign in to comment.