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'