aboutsummaryrefslogtreecommitdiff
path: root/deps/inja/.github/workflows/vsenv.bat
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-04-27 11:23:17 +0200
committerToni Uhlig <matzeton@googlemail.com>2021-04-27 11:23:17 +0200
commit36cc18d2b6d0eefd00a25a02bb4a407e700b5f9f (patch)
tree575b98e789934a2153a9063d1b91afb42dc27ef4 /deps/inja/.github/workflows/vsenv.bat
parentdd086a1608b0e3cd5565174225b8197792bad4b9 (diff)
parent514cb71a6a3e116c229c5dc874369f8632530dc7 (diff)
Merge commit '514cb71a6a3e116c229c5dc874369f8632530dc7' as 'deps/inja'
Diffstat (limited to 'deps/inja/.github/workflows/vsenv.bat')
-rw-r--r--deps/inja/.github/workflows/vsenv.bat17
1 files changed, 17 insertions, 0 deletions
diff --git a/deps/inja/.github/workflows/vsenv.bat b/deps/inja/.github/workflows/vsenv.bat
new file mode 100644
index 0000000..8fa2223
--- /dev/null
+++ b/deps/inja/.github/workflows/vsenv.bat
@@ -0,0 +1,17 @@
+@echo off
+
+SET VSWHERE="C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere"
+
+:: See https://github.com/microsoft/vswhere/wiki/Find-VC
+for /f "usebackq delims=*" %%i in (`%VSWHERE% -latest -property installationPath`) do (
+ call "%%i"\Common7\Tools\vsdevcmd.bat %*
+)
+
+:: Loop over all environment variables and make them global using set-env.
+:: See: https://help.github.com/en/articles/development-tools-for-github-actions#set-an-environment-variable-set-env
+:: See: https://stackoverflow.com/questions/39183272/loop-through-all-environmental-variables-and-take-actions-depending-on-prefix
+setlocal
+for /f "delims== tokens=1,2" %%a in ('set') do (
+ echo %%a=%%b >> $GITHUB_ENV
+)
+endlocal