Skip to content

Commit

Permalink
ci: bump to windows-latest image
Browse files Browse the repository at this point in the history
also remove misleading comments on MSVC
  • Loading branch information
letmaik committed May 2, 2021
1 parent 733da4c commit 0d5f8d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
10 changes: 1 addition & 9 deletions .github/scripts/build-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@ function Init-VS {
# setuptools automatically selects the right compiler for building
# the extension module. The following is mostly for building any
# dependencies like libraw.
# FIXME choose matching VC++ compiler, maybe using -vcvars_ver
# -> dependencies should not be built with newer compiler than Python itself
# https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line
# https://docs.microsoft.com/en-us/cpp/porting/binary-compat-2015-2017

$VS2015_ROOT = "C:\Program Files (x86)\Microsoft Visual Studio 14.0"
$VS2017_ROOT = "C:\Program Files (x86)\Microsoft Visual Studio\2017"
$VS2019_ROOT = "C:\Program Files (x86)\Microsoft Visual Studio\2019"

Expand All @@ -41,12 +38,7 @@ function Init-VS {
if ($PYTHON_VERSION_MINOR -le '4') {
throw ("Python <= 3.4 unsupported: $env:PYTHON_VERSION")
}
if (exists $VS2015_ROOT) {
$VS_VERSION = "2015"
$VS_ROOT = $VS2015_ROOT
$VS_INIT_CMD = "$VS_ROOT\VC\vcvarsall.bat"
$VS_INIT_ARGS = "$VS_ARCH"
} elseif (exists $VS2017_ROOT) {
if (exists $VS2017_ROOT) {
$VS_VERSION = "2017"
if (exists "$VS2017_ROOT\Enterprise") {
$VS_ROOT = "$VS2017_ROOT\Enterprise"
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,22 @@ jobs:
python-version: '3.9'
numpy-version: '1.19.*'

# Use 2016 image as 2019 does not have VC++ 14.0 compiler.
# https://github.community/t5/GitHub-Actions/Microsoft-Visual-C-14-0-compiler-not-available-on-Windows-2019/m-p/32871
- os-image: windows-2016
- os-image: windows-latest
os-name: windows
python-version: '3.6'
python-arch: '64'
numpy-version: '1.11'
- os-image: windows-2016
- os-image: windows-latest
os-name: windows
python-version: '3.7'
python-arch: '64'
numpy-version: '1.14'
- os-image: windows-2016
- os-image: windows-latest
os-name: windows
python-version: '3.8'
python-arch: '64'
numpy-version: '1.17'
- os-image: windows-2016
- os-image: windows-latest
os-name: windows
python-version: '3.9'
python-arch: '64'
Expand Down

0 comments on commit 0d5f8d6

Please sign in to comment.