Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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: |
Expand Down
3 changes: 3 additions & 0 deletions gyp/pylib/gyp/MSVSVersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down