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

Updates mac script to use precompiled version #933

Merged
merged 4 commits into from
Dec 3, 2024
Merged
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
32 changes: 6 additions & 26 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Integration test

env:
version: 9.1.0
version: 9.2.0

# runs on branches and pull requests; doesn't run on tags.
on:
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:

- name: Download dependencies (SCIPOptSuite)
shell: powershell
run: wget https://github.com/scipopt/scip/releases/download/$(echo "v${{env.version}}" | tr -d '.')/SCIPOptSuite-${{ env.version }}-win64-VS15.exe -outfile scipopt-installer.exe
run: wget https://github.com/scipopt/scip/releases/download/$(echo "v${{env.version}}" | tr -d '.')/SCIPOptSuite-${{ env.version }}-win64.exe -outfile scipopt-installer.exe

- name: Install dependencies (SCIPOptSuite)
shell: cmd
Expand Down Expand Up @@ -93,33 +93,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Cache dependencies (SCIPOptSuite)
id: cache-scip
uses: actions/cache@v2
with:
path: |
${{ runner.workspace }}/scipoptsuite
~/Library/Caches/Homebrew/tbb--*
/usr/local/opt/tbb*
~/Library/Caches/Homebrew/downloads/*--tbb-*
~/Library/Caches/Homebrew/boost--*
/usr/local/opt/boost*
~/Library/Caches/Homebrew/downloads/*--boost-*
key: ${{ runner.os }}-scipopt-${{ env.version }}-${{ hashFiles('**/lockfiles') }}
restore-keys: |
${{ runner.os }}-scipopt-${{ env.version }}-

- name: Install dependencies (SCIPOptSuite)
if: steps.cache-scip.outputs.cache-hit != 'true'
run: |
brew install tbb boost bison
wget --quiet --no-check-certificate https://github.com/scipopt/scip/releases/download/$(echo "v${{env.version}}" | tr -d '.')/scipoptsuite-${{ env.version }}.tgz
tar xfz scipoptsuite-${{ env.version }}.tgz
cd scipoptsuite-${{ env.version }}
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/scipoptsuite -DIPOPT=off -DSYM=none -DTPI=tny -DREADLINE=off
make install -j
wget --quiet --no-check-certificate https://github.com/scipopt/scip/releases/download/$(echo "v${{env.version}}" | tr -d '.')/SCIPOptSuite-${{ env.version }}-Darwin.sh
chmod +x SCIPOptSuite-${{ env.version }}-Darwin.sh
./SCIPOptSuite-${{ env.version }}-Darwin.sh --skip-license --include-subdir
mv SCIPOptSuite-${{ env.version }}-Darwin ${{ runner.workspace }}/scipoptsuite

- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Added primal_dual_evolution recipe and a plot recipe
### Fixed
### Changed
- GitHub actions using Mac now use precompiled SCIP from latest release
### Removed

## 5.2.1 - 2024.10.29
Expand Down
Loading