Skip to content

Commit

Permalink
update build for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgen-lentz committed Dec 8, 2024
1 parent f90b5e9 commit 1843950
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,22 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup SCIPOptSuite
uses: ./.github/actions/setup-scipoptsuite-action
- name: Update and install wget
run: |
sudo apt-get update
sudo apt-get install --yes wget
- name: Download libscip-linux.zip
run: |
wget https://github.com/jurgen-lentz/scipoptsuite-deploy/releases/download/v0.5.0/libscip-linux.zip -O gcg.zip
- name: Unzip the downloaded file
run: |
sudo apt-get install --yes unzip
unzip gcg.zip
ls -la
- name: Set up Python 3.9
uses: actions/setup-python@v2
Expand All @@ -23,9 +35,6 @@ jobs:
- name: Prepare Python Environment
run: |
pip install -r requirements.txt
- name: Setup PySCIPOpt
uses: ./.github/actions/setup-pyscipopt-action
- name: Build & Install PyGCGOpt
run: |
Expand Down
4 changes: 0 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ before-all = [
"wget https://github.com/jurgen-lentz/scipoptsuite-deploy/releases/download/v0.5.0/libscip-linux.zip -O gcg.zip",
"unzip gcg.zip",
]
#before-build = "pip install pyscipopt --no-binary=:all:"
environment = {PIP_NO_BINARY="pyscipopt", SCIPOPTDIR="$(pwd)/scip_install", GCGOPTDIR="$(pwd)/scip_install", LD_LIBRARY_PATH="$(pwd)/scip_install/lib:$LD_LIBRARY_PATH", DYLD_LIBRARY_PATH="$(pwd)/scip_install/lib:$DYLD_LIBRARY_PATH", PATH="$(pwd)/scip_install/bin:$PATH", PKG_CONFIG_PATH="$(pwd)/scip_install/lib/pkgconfig:$PKG_CONFIG_PATH", RELEASE="true"}


[tool.cibuildwheel.macos]
skip="pp* cp36* cp37*"
before-all = '''
Expand All @@ -65,7 +63,6 @@ else
fi
unzip gcg.zip
'''
#before-build = ["pip install setuptools wheel", "pip install pyscipopt --no-binary=:all: --no-cache-dir"]
environment = {PIP_NO_BINARY="pyscipopt", SCIPOPTDIR="$(pwd)/scip_install", GCGOPTDIR="$(pwd)/scip_install", LD_LIBRARY_PATH="$(pwd)/scip_install/lib:LD_LIBRARY_PATH", DYLD_LIBRARY_PATH="$(pwd)/scip_install/lib:$DYLD_LIBRARY_PATH", PATH="$(pwd)/scip_install/bin:$PATH", PKG_CONFIG_PATH="$(pwd)/scip_install/lib/pkgconfig:$PKG_CONFIG_PATH", RELEASE="true"}
repair-wheel-command = '''
bash -c '
Expand All @@ -81,7 +78,6 @@ repair-wheel-command = '''
'
'''


[tool.cibuildwheel.windows]
skip="pp* cp36* cp37*"
before-all = [
Expand Down

0 comments on commit 1843950

Please sign in to comment.