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:
parent
b7d4ffab79
commit
2ca6f09621
1
.github/workflows/github.yml
vendored
1
.github/workflows/github.yml
vendored
@ -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 }}
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user