Skip to content

Commit

Permalink
Handle MSVC versions better
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoldmopar committed Apr 3, 2024
1 parent 0e6c542 commit a6fc335
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/windows_release.yml
Expand Up @@ -211,4 +211,4 @@ jobs:
# uses: mxschmitt/action-tmate@v3

- name: Run Package Tests
run: python checkout/scripts/package_tests/runner.py --verbose win64 package/
run: python checkout/scripts/package_tests/runner.py --verbose --msvc 2022 win64 package/
2 changes: 1 addition & 1 deletion scripts/package_tests/ep_testing/config.py
Expand Up @@ -100,7 +100,7 @@ def __init__(self, run_config_key: str, this_version: str, last_version: str, la
self.os_version = this_config['os_version']
self.os = this_config['os']
self.msvc_version = None
if msvc_version is not None:
if msvc_version in ['16', '17', '18']:
self.msvc_version = msvc_version
elif self.os == OS.Windows and self.os_version == '2022':
self.msvc_version = 17
Expand Down
2 changes: 1 addition & 1 deletion scripts/package_tests/runner.py
Expand Up @@ -133,7 +133,7 @@ def main() -> int:
arg = parser.add_argument # readability
arg('config', choices=CONFIGURATIONS.keys(), help="Specify the run configuration")
arg('package_dir', help="Path to the extracted EnergyPlus package directory")
arg('--msvc', type=str, default='2022', help="For MSVC builds, this is the VS 'year', like '2022'")
arg('--msvc', type=str, default='', help="For MSVC builds, this is the VS 'year', like '2022'")
arg('--verbose', action='store_true', help="If specified, get verbose output")
args = parser.parse_args()
this, last, last_tag = get_version_info()
Expand Down

0 comments on commit a6fc335

Please sign in to comment.