|
54 | 54 |
|
55 | 55 | - name: Download dependencies (SCIPOptSuite) |
56 | 56 | shell: powershell |
57 | | - run: wget https://github.com/scipopt/scip/releases/download/$(echo "v${{env.version}}" | tr -d '.')/scipoptsuite-${{ env.version }}-win-x64.exe -outfile scipopt-installer.exe |
58 | | - |
| 57 | + run: | |
| 58 | + $v = "${{ env.version }}" |
| 59 | + $url = "https://github.com/scipopt/scip/releases/download/v$($v)/scipoptsuite-$($v)-win-x64.exe" |
| 60 | + Write-Host "Downloading $url" |
| 61 | + Invoke-WebRequest -Uri $url -OutFile scipopt-installer.exe |
59 | 62 | - name: Install dependencies (SCIPOptSuite) |
60 | 63 | shell: cmd |
61 | 64 | run: scipopt-installer.exe /S /D=${{ env.SCIPOPTDIR }} |
@@ -92,11 +95,16 @@ jobs: |
92 | 95 | - name: Install dependencies (SCIPOptSuite) |
93 | 96 | run: | |
94 | 97 | brew install tbb boost bison |
95 | | - wget --quiet --no-check-certificate "https://github.com/scipopt/scip/releases/download/v${version}/scipoptsuite-${version}-macos13-arm64.tgz" |
96 | | - tar xzf "scipoptsuite-${version}-macos13-arm64.tgz" |
97 | | - chmod +x "scipoptsuite-${version}-macos13-arm64.sh" |
98 | | - "./scipoptsuite-${version}-macos13-arm64.sh" --skip-license --include-subdir |
99 | | - mv "scipoptsuite-${version}-macos13-arm64" "${{ github.workspace }}/scipoptsuite" |
| 98 | + echo 'export PATH="/opt/homebrew/opt/bison/bin:$PATH"' >> $HOME/.bash_profile |
| 99 | + echo 'export LDFLAGS="-L/opt/homebrew/opt/bison/lib"' >> $HOME/.bash_profile |
| 100 | + source $HOME/.bash_profile |
| 101 | + v="${version}" |
| 102 | + url="https://github.com/scipopt/scip/releases/download/v${v}/scipoptsuite-${v}-macos13-arm64.tgz" |
| 103 | + echo "Downloading ${url}" |
| 104 | + curl -L -o scipoptsuite.tgz "${url}" |
| 105 | + mkdir -p "${{ github.workspace }}/scipoptsuite" |
| 106 | + tar -xzf scipoptsuite.tgz -C "${{ github.workspace }}/scipoptsuite" --strip-components=1 |
| 107 | + ls -la "${{ github.workspace }}/scipoptsuite" |
100 | 108 |
|
101 | 109 | - name: Setup python ${{ matrix.python-version }} |
102 | 110 | uses: actions/setup-python@v4 |
|
0 commit comments