1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Try to speed up msvc CI

This commit is contained in:
Ivan Savenko 2024-10-27 10:23:47 +00:00
parent b7d4ffab79
commit 2ca6f09621
2 changed files with 17 additions and 2 deletions

View File

@ -285,6 +285,7 @@ jobs:
sleep 3 sleep 3
((counter++)) ((counter++))
done done
rm -rf _CPack_Packages
- name: Artifacts - name: Artifacts
if: ${{ matrix.pack == 1 }} if: ${{ matrix.pack == 1 }}

View File

@ -1,4 +1,18 @@
#!/usr/bin/env bash #!/usr/bin/env bash
DUMPBIN_DIR=$(vswhere -latest -find **/dumpbin.exe | head -n 1) MSVC_INSTALL_PATH=$(vswhere -latest -property installationPath)
dirname "$DUMPBIN_DIR" > $GITHUB_PATH echo "MSVC_INSTALL_PATH = $MSVC_INSTALL_PATH"
echo "Installed toolset versions:"
ls -vr "$MSVC_INSTALL_PATH"/VC/Tools/MSVC
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
# This script should also work, but for some reason is *extremely* slow on Github CI (~7 minutes)
#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"