[YJ] tst icacls #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.1.0-Win64 | |
ARTELYS_LICENSE: ${{ github.workspace }}\knitro_distrib | |
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 • ${{ matrix.cmake.generator }} • C++ | |
runs-on: windows-latest | |
steps: | |
- name: Set up Git | |
run: | | |
git config --global core.autocrlf false | |
- name: Checkout or-tools | |
uses: actions/checkout@v2 | |
- name: Checkout Knitro Windows | |
uses: actions/checkout@v2 | |
with: | |
lfs: true | |
repository: loicli/Knitro-Distrib-Windows | |
#path: knitro_distrib_zip | |
path: knitro_distrib | |
# ref: main | |
token: ${{ secrets.KNITRO_DISTRIB }} | |
- name: Install Git LFS | |
run: | | |
git lfs install | |
- name: Pull LFS objects | |
run: | | |
git lfs pull | |
- name: Checkout LFS objects | |
run: git lfs checkout | |
- name: Unzip | |
#run: | | |
# mkdir knitro_distrib | |
# 7z x "knitro_distrib_zip/knitro-14.1.0-Win64.zip" -o"${{ env.ARTELYS_LICENSE }}" | |
run: | | |
tar -xvzf knitro_distrib\knitro-14.1.0-Win64.zip -C "${{ env.ARTELYS_LICENSE }}" | |
- name: Copy license | |
run: | | |
echo "${{ secrets.KNITRO_DISTRIB_LICENSE }}" >> ${{ env.ARTELYS_LICENSE }}\artelys_lic_cicd.txt | |
#- 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 what I have | |
run: | | |
ls -l . | |
icacls ${{ env.KNITRODIR }}/lib/* /g Everyone:F | |
ls -l ${{ env.ARTELYS_LICENSE }} | |
ls -l ${{ env.KNITRODIR }} | |
ls -l ${{ env.KNITRODIR }}/lib | |
- name: Run Knitro Test | |
run: | | |
./build/RELEASE/bin/test_knitro_interface |