Skip to content

[YJ] mmodifying FLAGS_logtostderr to FLAGS_stderrthreshold parallel test #102

[YJ] mmodifying FLAGS_logtostderr to FLAGS_stderrthreshold parallel test

[YJ] mmodifying FLAGS_logtostderr to FLAGS_stderrthreshold parallel test #102

# ref: https://github.com/actions/runner-images
name: Windows knitro tests
on: [push, pull_request, workflow_dispatch]
# Building using the github runner environement directly.
jobs:
native:
env :
KNITRODIR: ${{ github.workspace }}\knitro_distrib\knitro-14.0.0-Win64
ARTELYS_LICENSE: ${{ github.workspace }}\knitro_distrib
OR_ROOT: ${{ github.workspace }}
strategy:
matrix:
cmake: [
{generator: "Visual Studio 17 2022", config: Release, build_target: ALL_BUILD, test_target: RUN_TESTS, install_target: INSTALL},
]
fail-fast: false
name: Windows • Knitro Test • C++
runs-on: windows-latest
steps:
- name: Checkout or-tools
uses: actions/checkout@v4
- name: Checkout Knitro Windows
uses: actions/checkout@v4
with:
repository: yojvr/knitro1400-Win64
path: knitro_distrib
token: ${{ secrets.KNITRO_DISTRIB }}
- name: Unzip
run: |
unzip "${{ env.KNITRODIR }}/knitroampl/knitroampl.zip" -d "${{ env.KNITRODIR }}/knitroampl"
unzip "${{ env.KNITRODIR }}/knitromatlab/knitromatlab_mex.zip" -d "${{ env.KNITRODIR }}/knitromatlab"
unzip "${{ env.KNITRODIR }}/lib/knitro.zip" -d "${{ env.KNITRODIR }}/lib"
rm ${{ env.KNITRODIR }}/knitroampl/knitroampl.zip
rm ${{ env.KNITRODIR }}/knitromatlab/knitromatlab_mex.zip
rm ${{ env.KNITRODIR }}/lib/knitro.zip
- name: Copy license
run: |
echo "${{ secrets.KNITRO_DISTRIB_LICENSE }}" >> ${{ env.ARTELYS_LICENSE }}/artelys_lic_cicd.txt
- name: Grant access to knitro distrib
run: |
icacls ${{ env.KNITRODIR }} /grant Everyone:RX /t
- name: Check cmake
run: |
cmake --version
cmake -G || true
- name: Configure
run: >
cmake -S. -Bbuild
-G "${{ matrix.cmake.generator }}"
-DCMAKE_BUILD_TYPE=${{ matrix.cmake.config }}
-DBUILD_DEPS=ON
-DUSE_KNITRO=ON
-DBUILD_TESTING=ON
- name: Build
run: >
cmake --build build
--config ${{ matrix.cmake.config }}
--target ${{ matrix.cmake.build_target }}
-v -j2
- name: Check Build dir
run: |
ls -l .
ls -l ${{ env.ARTELYS_LICENSE }}
ls -l ${{ env.KNITRODIR }}
ls -l ${{ env.KNITRODIR }}/knitroampl/
ls -l ${{ env.KNITRODIR }}/knitromatlab/
ls -l ${{ env.KNITRODIR }}/lib/
- name: Run Knitro Test
run: >
./build/RELEASE/bin/test_knitro_interface