From d92c0146a1c5020efbd177016e68552c4f2ac7da Mon Sep 17 00:00:00 2001 From: Damien Jeandemange Date: Wed, 4 Dec 2024 16:01:35 +0100 Subject: [PATCH] ubuntu Signed-off-by: Damien Jeandemange --- .github/workflows/maven.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 7b3f1e1..09d0854 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -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: | @@ -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'