forked from ofiwg/libfabric
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.appveyor.ps1
29 lines (21 loc) · 1.15 KB
/
.appveyor.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[cmdletbinding()] Param()
$ErrorActionPreference="Stop"
Write-Verbose "downloading NetworkDirect DDK.."
Invoke-WebRequest -Uri "https://download.microsoft.com/download/5/A/E/5AEA3C34-32A1-4A70-9622-F9734E92981F/NetworkDirect_DDK.zip" -OutFile "NetworkDirect_DDK.zip"
Write-Verbose "done"
Write-Verbose "extracting NetworkDirect DDK.."
$wd=$PWD.Path; & { Add-Type -A "System.IO.Compression.FileSystem"; [IO.Compression.ZipFile]::ExtractToDirectory("$wd\NetworkDirect_DDK.zip", "$wd"); }
Write-Verbose "done"
Write-Verbose "moving NetworkDirect headers.."
move NetDirect\include\* include\windows
Write-Verbose "done"
$efaWinVersion="1.0.0"
Write-Verbose "downloading efawin version ${efaWinVersion} files.."
Invoke-WebRequest -Uri "https://github.com/aws/efawin/archive/refs/tags/v${efaWinVersion}.zip" -OutFile "efawin.zip"
Write-Verbose "done"
Write-Verbose "extracting efawin files.."
$wd=$PWD.Path; & { Add-Type -A "System.IO.Compression.FileSystem"; [IO.Compression.ZipFile]::ExtractToDirectory("$wd\efawin.zip", "$wd"); }
Write-Verbose "done"
Write-Verbose "copying efawin files.."
xcopy /s efawin-$efaWinVersion\interface\* prov\efa\src\windows\
Write-Verbose "done"