Skip to content

Commit 5901e6d

Browse files
committed
try to fix integration test
1 parent 063f83c commit 5901e6d

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/integration-test.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,11 @@ jobs:
5454

5555
- name: Download dependencies (SCIPOptSuite)
5656
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
5962
- name: Install dependencies (SCIPOptSuite)
6063
shell: cmd
6164
run: scipopt-installer.exe /S /D=${{ env.SCIPOPTDIR }}
@@ -92,11 +95,16 @@ jobs:
9295
- name: Install dependencies (SCIPOptSuite)
9396
run: |
9497
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"
100108
101109
- name: Setup python ${{ matrix.python-version }}
102110
uses: actions/setup-python@v4

0 commit comments

Comments
 (0)