Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Position independent code #5

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 32 additions & 32 deletions .github/workflows/build_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
- os: macos-14
bash_script: macos_arm.bash
id: macos-arm
- os: macos-latest
bash_script: macos.bash
id: macos
# - os: macos-latest
# bash_script: macos.bash
# id: macos

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -56,36 +56,36 @@ jobs:
with:
path: ${{ github.workspace }}/libscip-${{matrix.id}}.zip

linux-build-binaries:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64
steps:
- uses: actions/checkout@v3
- name: Build and install SCIP
run: |
export SCIP_VERSION=$(echo "${{github.event.inputs.scip_version}}" | tr -d '.')
export SOPLEX_VERSION=$(echo "${{github.event.inputs.soplex_version}}" | tr -d '.')
export IPOPT_VERSION=${{ github.event.inputs.ipopt_version }}
bash -x .github/workflows/scripts/linux.bash
- uses: actions/upload-artifact@v3
with:
path: ${{ github.workspace }}/libscip-linux.zip
# linux-build-binaries:
# runs-on: ubuntu-latest
# container: quay.io/pypa/manylinux2014_x86_64
# steps:
# - uses: actions/checkout@v3
# - name: Build and install SCIP
# run: |
# export SCIP_VERSION=$(echo "${{github.event.inputs.scip_version}}" | tr -d '.')
# export SOPLEX_VERSION=$(echo "${{github.event.inputs.soplex_version}}" | tr -d '.')
# export IPOPT_VERSION=${{ github.event.inputs.ipopt_version }}
# bash -x .github/workflows/scripts/linux.bash
# - uses: actions/upload-artifact@v3
# with:
# path: ${{ github.workspace }}/libscip-linux.zip

windows-build-binaries:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
# windows-build-binaries:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3
# - uses: msys2/setup-msys2@v2

- name: Build and install SCIP
run: |
export SCIP_VERSION=$(echo "${{github.event.inputs.scip_version}}" | tr -d '.')
export SOPLEX_VERSION=$(echo "${{github.event.inputs.soplex_version}}" | tr -d '.')
export IPOPT_VERSION=${{ github.event.inputs.ipopt_version }}
bash -x .github/workflows/scripts/windows.bash
shell: msys2 {0}
# - name: Build and install SCIP
# run: |
# export SCIP_VERSION=$(echo "${{github.event.inputs.scip_version}}" | tr -d '.')
# export SOPLEX_VERSION=$(echo "${{github.event.inputs.soplex_version}}" | tr -d '.')
# export IPOPT_VERSION=${{ github.event.inputs.ipopt_version }}
# bash -x .github/workflows/scripts/windows.bash
# shell: msys2 {0}

- uses: actions/upload-artifact@v3
with:
path: ${{ github.workspace }}/libscip-windows.zip
# - uses: actions/upload-artifact@v3
# with:
# path: ${{ github.workspace }}/libscip-windows.zip

10 changes: 5 additions & 5 deletions .github/workflows/scripts/macos_arm.bash
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ unzip release-$SOPLEX_VERSION.zip
cd soplex-release-$SOPLEX_VERSION
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../../scip_install -DCMAKE_BUILD_TYPE=Release -DGMP=true -DPAPILO=false -DBOOST=false -DGMP_DIR=../../scip_install -DWITH_SHARED_LIBS=off
cmake .. -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/scip_install -DCMAKE_BUILD_TYPE=Release -DGMP=true -DPAPILO=false -DBOOST=false -DGMP_DIR=$GITHUB_WORKSPACE/scip_install -DWITH_SHARED_LIBS=off -DPOSITION_INDEPENDENT_CODE=ON
make -j$(nproc)
make test
make install
Expand All @@ -69,10 +69,10 @@ unzip v$SCIP_VERSION.zip
cd scip-$SCIP_VERSION
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../../scip_install -DCMAKE_BUILD_TYPE=Release -DLPS=spx -DSOPLEX_DIR=../../scip_install -DGMP_DIR=../../scip_install -DPAPILO=false -DZIMPL=false -DGMP=true -DREADLINE=false -DIPOPT=true -DIPOPT_DIR=../../scip_install
make -j$(nproc)
make install
cmake .. -DCMAKE_INSTALL_PREFIX=../../scip_install -DCMAKE_BUILD_TYPE=Release -DLPS=spx -DSOPLEX_DIR=../../scip_install -DGMP_DIR=../../scip_install -DPAPILO=false -DZIMPL=false -DGMP=true -DREADLINE=false -DIPOPT=true -DIPOPT_DIR=../../scip_install -DSHARED=false
# cmake .. -DCMAKE_INSTALL_PREFIX=../../scip_install -DCMAKE_BUILD_TYPE=Release -DLPS=spx -DSOPLEX_DIR=../../scip_install -DGMP_DIR=../../scip_install -DPAPILO=false -DZIMPL=false -DGMP=true -DREADLINE=false -DIPOPT=true -DIPOPT_DIR=../../scip_install
# make -j$(nproc)
# make install
cmake .. -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/scip_install -DCMAKE_BUILD_TYPE=Release -DSYM=nauty -DLPS=spx -DSOPLEX_DIR=$GITHUB_WORKSPACE/scip_install/lib/libsoplex-pic.a -DGMP_DIR=$GITHUB_WORKSPACE/scip_install -DPAPILO=false -DZIMPL=false -DGMP=true -DREADLINE=false -DIPOPT=true -DIPOPT_DIR=$GITHUB_WORKSPACE/scip_install -DSHARED=false -DPOSITION_INDEPENDENT_CODE=ON -DZLIB=Off
make -j$(nproc)
make install

Expand Down
Loading