Skip to content

Commit

Permalink
Install CPLEX under D:\a directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Oct 5, 2023
1 parent 7519fee commit 3b8bba9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
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
7 changes: 2 additions & 5 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 @@ -71,15 +71,12 @@ jobs:
echo "https://www.ibm.com/docs/en/icos/22.1.1?topic=2211-silent-installation-cplex-optimization-studio"
curl.exe --output cplex.exe $ENV:CPLEX_URL
# This directory only already exists for repos called "downward".
mkdir D:\a\downward
echo "Install CPLEX"
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 D:\a\downward\cplex_temp\cplex $ENV:cplex_DIR
Xcopy /E /I D:\a\cplex_temp\cplex $ENV:cplex_DIR
- name: Compile planner
Expand Down

0 comments on commit 3b8bba9

Please sign in to comment.