Skip to content

Commit

Permalink
GitHub Actions: run SCPI test using Dockerized SCIP
Browse files Browse the repository at this point in the history
  • Loading branch information
msakai committed Jan 24, 2021
1 parent 8fb7543 commit 14b308a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yaml
Expand Up @@ -14,8 +14,9 @@ jobs:
stack_yaml: 'stack-ghc-8.8.yaml'
stack_args: '--coverage --haddock --no-haddock-deps'
stack_test_args: ''
flags: '--flag MIP:TestCBC --flag MIP:TestGlpsol --flag MIP:TestLPSolve --flag MIP:TestGurobiCl'
flags: '--flag MIP:TestCBC --flag MIP:TestGlpsol --flag MIP:TestLPSolve --flag MIP:TestGurobiCl --flag MIP:TestSCIP'
coveralls: true
scip_docker: true
- ghc: '8.8.4'
os: ubuntu-latest
stack_yaml: 'stack-ghc-8.8.yaml'
Expand Down Expand Up @@ -122,6 +123,12 @@ jobs:
shell: bash
run: stack exec ${{ matrix.stack_args }} -- pacman -S --needed --noconfirm ${{ matrix.MINGW_PACKAGE_PREFIX }}-glpk ${{ matrix.MINGW_PACKAGE_PREFIX }}-lpsolve

- name: Setup SCIP Docker image
if: matrix.scip_docker
run: |
docker image pull scipoptsuite/scipoptsuite:7.0.2
echo "${GITHUB_WORKSPACE}/misc/scip_docker_wrapper" >> $GITHUB_PATH
- uses: actions/cache@v1
name: Cache ~/.stack
with:
Expand Down
4 changes: 4 additions & 0 deletions misc/scip_docker_wrapper/scip
@@ -0,0 +1,4 @@
#!/bin/bash

CanonicalTemporaryDirectory=`ghc -package temporary -e "import System.IO.Temp" -e "getCanonicalTemporaryDirectory >>= putStrLn"`
docker run -v $CanonicalTemporaryDirectory:$CanonicalTemporaryDirectory -u `id -u` --entrypoint=scip scipoptsuite/scipoptsuite:7.0.2 "$@"

0 comments on commit 14b308a

Please sign in to comment.