Skip to content

Commit

Permalink
ubuntu
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Jeandemange <[email protected]>
  • Loading branch information
jeandemanged committed Dec 4, 2024
1 parent 601e29b commit d92c014
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,18 @@ jobs:
strategy:
matrix:
# revert me os: [ubuntu-latest, windows-latest, macos-latest]
os: [windows-latest]
os: [ubuntu-latest, windows-latest]

steps:
- name: Install Knitro (Linux)
run: |
wget -nv -O knitro.tar.gz "$KNITRO_LINUX_URL"
mkdir -p /opt/knitro
tar xzf knitro.tar.gz -C /opt/knitro
echo "KNITRODIR=/opt/knitro/knitro-14.1.0-Linux64" >> "$GITHUB_ENV"
env:
KNITRO_LINUX_URL: ${{ secrets.KNITRO_LINUX_URL }}

- name: Install Knitro (Windows)
shell: powershell
run: |
Expand Down Expand Up @@ -49,7 +58,10 @@ jobs:

- name: Build with Maven (Ubuntu / MacOS)
if: matrix.os != 'windows-latest'
run: ./mvnw --batch-mode -Pjacoco install
run: |
mvnw install:install-file -Dfile="$KNITRODIR/examples/Java/lib/bridj-0.7.0.jar" -DgroupId=com.artelys -DartifactId=bridj -Dversion=0.7.0 -Dpackaging=jar -DgeneratePom=true
mvnw install:install-file -Dfile="$KNITRODIR/examples/Java/lib/Knitro-Interfaces-2.5-KN_14.1.0.jar" -DgroupId=com.artelys -DartifactId=knitro-interfaces -Dversion=14.1.0 -Dpackaging=jar -DgeneratePom=true
./mvnw --batch-mode -Pjacoco install
- name: Build with Maven (Windows)
if: matrix.os == 'windows-latest'
Expand Down

0 comments on commit d92c014

Please sign in to comment.