File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 2121 - name : Setup MSBuild
2222 uses : microsoft/setup-msbuild@v2
2323
24+ - name : Download Microsoft.Windows.Devices.Midi2.nupkg
25+ shell : pwsh
26+ run : |
27+ $packageUrl = "https://github.com/microsoft/MIDI/releases/download/rc-3/Microsoft.Windows.Devices.Midi2.1.0.16-rc.3.7.nupkg"
28+ $downloadFolder = "${{ runner.temp }}\Midi2"
29+
30+ New-Item -Path $downloadFolder -ItemType Directory -Force | Out-Null
31+
32+ $fileName = Split-Path $packageUrl -Leaf
33+ $destinationPath = Join-Path $downloadFolder $fileName
34+
35+ Write-Host "Downloading package from: $packageUrl"
36+ Write-Host "Saving to: $destinationPath"
37+
38+ Invoke-WebRequest -Uri $packageUrl -OutFile $destinationPath
39+ Write-Host "Download complete. Package saved to: $destinationPath"
40+
2441 - name : Restore NuGet packages
2542 run : |
26- nuget restore "Resources/Native/Windows/Melanchall.DryWetMidi.Native.Windows/Melanchall.DryWetMidi.Native.Windows/Melanchall.DryWetMidi.Native.Windows.vcxproj" -SolutionDirectory "${{ github.workspace }}/Resources/Native/Windows/Melanchall.DryWetMidi.Native.Windows"
43+ nuget restore "Resources/Native/Windows/Melanchall.DryWetMidi.Native.Windows/Melanchall.DryWetMidi.Native.Windows/Melanchall.DryWetMidi.Native.Windows.vcxproj" -Source "${{ runner.temp }}\Midi2" -Source "https://api.nuget.org/v3/index.json" - SolutionDirectory "${{ github.workspace }}/Resources/Native/Windows/Melanchall.DryWetMidi.Native.Windows"
2744
2845 - name : Build dll
2946 run : |
You can’t perform that action at this time.
0 commit comments