Skip to content

Commit 2c7e66c

Browse files
committed
Basic loopback check
1 parent 22cc731 commit 2c7e66c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/build-native-libs.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,26 @@ jobs:
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: |

0 commit comments

Comments
 (0)