-
Notifications
You must be signed in to change notification settings - Fork 28
30 lines (30 loc) · 1008 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Optimus CI
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
scala: [ 2.12.16, 2.13.8, 3.1.3 ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: "11"
distribution: "temurin"
- name: Install lp-solve
run: |
sudo apt-get -qq update
sudo apt-get install -y lp-solve
sudo wget https://sourceforge.net/projects/lpsolve/files/lpsolve/5.5.2.5/lp_solve_5.5.2.5_java.zip
unzip lp_solve_5.5.2.5_java.zip
sudo cp lp_solve_5.5_java/lib/ux64/liblpsolve55j.so /usr/lib/lp_solve && sudo ldconfig
- name: Run tests
run: sbt "++${{ matrix.scala }}" "core/test" "solver-oj/testOnly optimus.optimization.OJ*" "solver-lp/testOnly optimus.optimization.LP*"
env:
LD_LIBRARY_PATH: "/usr/lib/lp_solve"