Skip to content

Commit

Permalink
build lp_solve from source on GitHub Actions
Browse files Browse the repository at this point in the history
Pre-built binaries are 32-bit and GitHub Actions uses newer macOS
which does not support 32-bit applications.x
  • Loading branch information
msakai committed Jan 5, 2021
1 parent 3f8d43b commit b317475
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ jobs:
run: |
brew install cbc glpk
mkdir lp_solve
curl -L https://jaist.dl.sourceforge.net/project/lpsolve/lpsolve/5.5.2.5/lp_solve_5.5.2.5_exe_osx32.tar.gz | tar xz -C lp_solve
echo "${GITHUB_WORKSPACE}/lp_solve" >> $GITHUB_PATH
curl -L https://jaist.dl.sourceforge.net/project/lpsolve/lpsolve/5.5.2.11/lp_solve_5.5.2.11_source.tar.gz | tar xz -C lp_solve
(cd lp_solve_5.5/lp_solve && sh ccc.osx)
echo "${GITHUB_WORKSPACE}/lp_solve_5.5/lp_solve/bin/osx64" >> $GITHUB_PATH
- uses: actions/cache@v1
name: Cache ~/.stack
Expand Down

0 comments on commit b317475

Please sign in to comment.