1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-10 00:43:59 +02:00
vcmi/CI/before_install/msvc.sh

18 lines
647 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2024-10-27 12:23:47 +02:00
MSVC_INSTALL_PATH=$(vswhere -latest -property installationPath)
echo "MSVC_INSTALL_PATH = $MSVC_INSTALL_PATH"
echo "Installed toolset versions:"
2024-10-27 19:45:12 +02:00
ls -vr "$MSVC_INSTALL_PATH/VC/Tools/MSVC"
2024-10-27 12:23:47 +02:00
2024-10-27 19:45:12 +02:00
TOOLS_DIR=$(ls -vr "$MSVC_INSTALL_PATH/VC/Tools/MSVC/" | head -1)
DUMPBIN_PATH="$MSVC_INSTALL_PATH/VC/Tools/MSVC/$TOOLS_DIR/bin/Hostx64/x64/dumpbin.exe"
2024-10-27 12:23:47 +02:00
2024-10-27 19:45:12 +02:00
# This command should work as well, but for some reason it is *extremely* slow on the Github CI (~7 minutes)
2024-10-27 12:23:47 +02:00
#DUMPBIN_PATH=$(vswhere -latest -find **/dumpbin.exe | head -n 1)
echo "TOOLS_DIR = $TOOLS_DIR"
echo "DUMPBIN_PATH = $DUMPBIN_PATH"
dirname "$DUMPBIN_PATH" > "$GITHUB_PATH"