Skip to content

Commit

Permalink
Add arm build in wget
Browse files Browse the repository at this point in the history
Opt-Mucca committed Jan 26, 2024
1 parent 6506a0f commit 3f346a0
Showing 2 changed files with 2 additions and 13 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -22,24 +22,13 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Install GCC
if: (matrix.os == 'macos-latest') && (matrix.arch == 'arm64')
run: |
export CC=/usr/local/bin/gcc-13
export CXX=/usr/local/bin/g++-13
brew install bash
brew upgrade cmake
shell: bash

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: "pytest {project}/tests"
CC: "/usr/local/bin/gcc-13"
CXX: "/usr/local/bin/g++-13"

# - uses: actions/upload-artifact@v3
# with:
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -21,11 +21,11 @@ environment = { SCIPOPTDIR="$(pwd)/scip", LD_LIBRARY_PATH="$(pwd)/scip/lib:LD_LI
skip="pp* cp36* cp37* cp38* cp38* cp39* cp310* cp312*"
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"
]
environment = { SCIPOPTDIR="$(pwd)/src/scip", LD_LIBRARY_PATH="$(pwd)/src/scip/lib:LD_LIBRARY_PATH", DYLD_LIBRARY_PATH="$(pwd)/src/scip/lib:$DYLD_LIBRARY_PATH", PATH="$(pwd)/src/scip/bin:$PATH", PKG_CONFIG_PATH="$(pwd)/src/scip/lib/pkgconfig:$PKG_CONFIG_PATH"}
environment = {SCIPOPTDIR="$(pwd)/src/scip", LD_LIBRARY_PATH="$(pwd)/src/scip/lib:LD_LIBRARY_PATH", DYLD_LIBRARY_PATH="$(pwd)/src/scip/lib:$DYLD_LIBRARY_PATH", PATH="$(pwd)/src/scip/bin:$PATH", PKG_CONFIG_PATH="$(pwd)/src/scip/lib/pkgconfig:$PKG_CONFIG_PATH"}
repair-wheel-command = [
"delocate-listdeps {wheel}",
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}",

0 comments on commit 3f346a0

Please sign in to comment.