Skip to content

Commit

Permalink
Test macos-arm wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
mmghannam committed Dec 9, 2023
1 parent adc51a6 commit 114622f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
strategy:
matrix:
include:
- os: ubuntu-20.04
arch: x86_64
# - os: macos-latest
# arch: arm64
# - os: ubuntu-20.04
# arch: x86_64
- os: macos-latest
arch: x86_64
- os: windows-latest
arch: AMD64
arch: arm64
# - os: macos-latest
# arch: x86_64
# - os: windows-latest
# arch: AMD64



Expand All @@ -34,31 +34,31 @@ jobs:
with:
path: ./wheelhouse/*.whl

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# 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
# - name: Build sdist
# shell: bash -l {0}
# run: pipx run build --sdist

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

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

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
# - uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
# verbose: true
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ environment = { SCIPOPTDIR="$(pwd)/scip", LD_LIBRARY_PATH="$(pwd)/scip/lib:LD_LI


[tool.cibuildwheel.macos]
skip="pp* cp312*"
skip="pp* cp312* cp36* cp37* cp38* cp39* cp310*"
before-all = [
"brew install wget zlib gcc",
"wget https://github.com/mmghannam/scip/releases/download/v8.0.3/libscip-macos.zip -O scip.zip",
"wget https://github.com/mmghannam/scip/releases/download/v8.0.3/libscip-macos-arm.zip -O scip.zip",
"unzip scip.zip",
"mv scip_install src/scip"
]
Expand Down

0 comments on commit 114622f

Please sign in to comment.