diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 651b1a9f49..89ee430b3b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: Tests: strategy: - fail-fast: false + fail-fast: false max-parallel: 15 matrix: node: [10.x, 12.x, 14.x] @@ -31,9 +31,11 @@ jobs: pip install flake8 pytest - name: Set Windows environment if: matrix.os == 'windows-latest' - run: - echo '::set-env name=GYP_MSVS_VERSION::2015' - echo '::set-env name=GYP_MSVS_OVERRIDE_PATH::C:\\Dummy' + run: | + import os + os.environ["GYP_MSVS_VERSION"] = "2015" + os.environ["GYP_MSVS_OVERRIDE_PATH"] = "C:\\Dummy" + shell: python - name: Lint Python if: matrix.os == 'ubuntu-latest' run: | diff --git a/gyp/pylib/gyp/MSVSVersion.py b/gyp/pylib/gyp/MSVSVersion.py index 36b006aaa9..b3f726b3df 100644 --- a/gyp/pylib/gyp/MSVSVersion.py +++ b/gyp/pylib/gyp/MSVSVersion.py @@ -549,6 +549,9 @@ def SelectVisualStudioVersion(version="auto", allow_fallback=True): "2017": ("15.0",), "2019": ("16.0",), } + print('ENV OVERRIDES: \n') + for key in ("GYP_MSVS_OVERRIDE_PATH", "GYP_MSVS_VERSION"): + print("{}: {}".format(key, os.environ.get(key))) override_path = os.environ.get("GYP_MSVS_OVERRIDE_PATH") if override_path: msvs_version = os.environ.get("GYP_MSVS_VERSION")