Skip to content

Commit

Permalink
Set TLS 1.2 for Start-FileDownload [skip travis] [skip cirrus]
Browse files Browse the repository at this point in the history
As reported by appveyor/ci#3930
  • Loading branch information
tbeu committed Sep 6, 2024
1 parent 8407b4e commit 320fd48
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ platform:

environment:
matrix:
- compiler: MinGW
configuration: Release
build_with: autoconf
- compiler: Cygwin
configuration: Release
build_with: autoconf
- compiler: MSVC
configuration: Release
build_with: cmake
Expand All @@ -31,6 +25,12 @@ environment:
- compiler: MSVC
configuration: Release Lib
build_with: msbuild
- compiler: MinGW
configuration: Release
build_with: autoconf
- compiler: Cygwin
configuration: Release
build_with: autoconf

matrix:
exclude:
Expand Down Expand Up @@ -65,9 +65,11 @@ for:
$env:HDF5_DIR="C:\projects\HDF5-1.8.13-win32"
$env:sdk_platform_env="x86"
If ($env:configuration -Match "Lib") {
"[Net.ServicePointManager]::SecurityProtocol = 'Tls12'"
Start-FileDownload 'https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.13/bin/windows/hdf5-1.8.13-win32-VS2010-static.zip'
7z x -y hdf5-1.8.13-win32-VS2010-static.zip | FIND "ing archive"
} Else {
"[Net.ServicePointManager]::SecurityProtocol = 'Tls12'"
Start-FileDownload 'https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.13/bin/windows/hdf5-1.8.13-win32-VS2010-shared.zip'
7z x -y hdf5-1.8.13-win32-VS2010-shared.zip | FIND "ing archive"
}
Expand All @@ -76,9 +78,11 @@ for:
$env:HDF5_DIR="C:\projects\HDF5-1.8.13-win64"
$env:sdk_platform_env="x64"
If ($env:configuration -Match "Lib") {
"[Net.ServicePointManager]::SecurityProtocol = 'Tls12'"
Start-FileDownload 'https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.13/bin/windows/hdf5-1.8.13-win64-VS2010-static.zip'
7z x -y hdf5-1.8.13-win64-VS2010-static.zip | FIND "ing archive"
} Else {
"[Net.ServicePointManager]::SecurityProtocol = 'Tls12'"
Start-FileDownload 'https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.13/bin/windows/hdf5-1.8.13-win64-VS2010-shared.zip'
7z x -y hdf5-1.8.13-win64-VS2010-shared.zip | FIND "ing archive"
}
Expand Down

0 comments on commit 320fd48

Please sign in to comment.