Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CPLEX compilation on Windows for repos not named 'downward'. #188

Merged
merged 3 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/misc/cplex2211_windows_installer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ LICENSE_ACCEPTED=TRUE

#Choose installation directory
#-----------------------------
USER_INSTALL_DIR=D:\\a\\downward\\cplex_temp
USER_INSTALL_DIR=D:\\a\\cplex_temp

#Copy examples
#-------------------
CPLEX_STUDIO_EXAMPLES_DIR=D:\\a\\downward\\cplex_examples
CPLEX_STUDIO_EXAMPLES_DIR=D:\\a\\cplex_examples
CPLEX_STUDIO_SAMPLE_COPY_ACTIVATED=1

#Associate files with CPLEX
Expand All @@ -40,17 +40,17 @@ INSTALLER_UI=silent

#Install
#------------
-fileOverwrite_D\:\\a\\downward\\cplex_temp\\README.html=Yes
-fileOverwrite_D\:\\a\\downward\\cplex_temp\\Uninstall\\Uninstall.lax=Yes
-fileOverwrite_D\:\\a\\downward\\cplex_temp\\Uninstall\\resource\\iawin64_x64.dll=Yes
-fileOverwrite_D\:\\a\\downward\\cplex_temp\\Uninstall\\resource\\iawin32.dll=Yes
-fileOverwrite_D\:\\a\\downward\\cplex_temp\\Uninstall\\resource\\win64_32_x64.exe=Yes
-fileOverwrite_D\:\\a\\downward\\cplex_temp\\Uninstall\\resource\\remove.exe=Yes
-fileOverwrite_D\:\\a\\downward\\cplex_temp\\Uninstall\\resource\\invoker.exe=Yes
-fileOverwrite_D\:\\a\\downward\\cplex_temp\\Uninstall\\ibm_uninsticon.ico=Yes
-fileOverwrite_D\:\\a\\downward\\cplex_temp\\opl\\oplide\\oplide_installer.bat=Yes
-fileOverwrite_D\:\\a\\downward\\cplex_temp\\opl\\oplide\\oplide.exe=Yes
-fileOverwrite_D\:\\a\\downward\\cplex_examples\\.samples=Yes
-fileOverwrite_D\:\\a\\cplex_temp\\README.html=Yes
-fileOverwrite_D\:\\a\\cplex_temp\\Uninstall\\Uninstall.lax=Yes
-fileOverwrite_D\:\\a\\cplex_temp\\Uninstall\\resource\\iawin64_x64.dll=Yes
-fileOverwrite_D\:\\a\\cplex_temp\\Uninstall\\resource\\iawin32.dll=Yes
-fileOverwrite_D\:\\a\\cplex_temp\\Uninstall\\resource\\win64_32_x64.exe=Yes
-fileOverwrite_D\:\\a\\cplex_temp\\Uninstall\\resource\\remove.exe=Yes
-fileOverwrite_D\:\\a\\cplex_temp\\Uninstall\\resource\\invoker.exe=Yes
-fileOverwrite_D\:\\a\\cplex_temp\\Uninstall\\ibm_uninsticon.ico=Yes
-fileOverwrite_D\:\\a\\cplex_temp\\opl\\oplide\\oplide_installer.bat=Yes
-fileOverwrite_D\:\\a\\cplex_temp\\opl\\oplide\\oplide.exe=Yes
-fileOverwrite_D\:\\a\\cplex_examples\\.samples=Yes

#Post installation steps
#-------------------------------
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
CC: cl
CXX: cl

cplex_DIR: D:\a\downward\cplex
cplex_DIR: D:\a\cplex

CPLEX_URL: "${{ secrets.CPLEX2211_WINDOWS_URL }}"
ZLIB_URL: "https://www.zlib.net/zlib13.zip"
Expand Down Expand Up @@ -72,11 +72,11 @@ jobs:
curl.exe --output cplex.exe $ENV:CPLEX_URL
echo "Install CPLEX"
Start-Process -FilePath .\cplex.exe -ArgumentList "-f", "D:\a\downward\downward\.github\workflows\misc\cplex2211_windows_installer.properties" -PassThru | Wait-Process
Start-Process -FilePath .\cplex.exe -ArgumentList "-f", "$ENV:GITHUB_WORKSPACE\.github\workflows\misc\cplex2211_windows_installer.properties" -PassThru | Wait-Process
del .\cplex.exe
echo "Copy the relevant directory to a location which is not magically protected against cmake"
Xcopy /E /I ..\cplex_temp\cplex ..\cplex
echo "Copy the relevant directory to a location which is not magically protected against CMake"
Xcopy /E /I D:\a\cplex_temp\cplex $ENV:cplex_DIR
- name: Compile planner
Expand Down