diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 964686dcc..dd2139fcf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,8 +68,27 @@ jobs: Scream\Install\helpers\devcon-x64.exe install Scream\Install\driver\x64\Scream.inf *Scream timeout-minutes: 5 - - name: Install Virtual Audio Cable - run: choco install vb-audio-cable + - name: Download Virtual Audio Cable Driver ZIP + shell: powershell + run: Invoke-WebRequest -Uri "https://download.vb-audio.com/Download_CABLE/VBCABLE_Driver_Pack45.zip" -OutFile "VBCABLE_Driver_Pack45.zip" + + - name: Extract the ZIP file + shell: powershell + run: Expand-Archive -Path "VBCABLE_Driver_Pack45.zip" -DestinationPath "VBCABLE_Driver_Pack45" + + - name: Run the Installer + shell: powershell + run: Start-Process -FilePath "VBCABLE_Driver_Pack45\VBCABLE_Setup.exe" -ArgumentList "/S" -Wait -NoNewWindow + + - name: Cleanup extracted files + shell: powershell + run: | + if (Test-Path "VBCABLE_Driver_Pack45") { + Remove-Item -Recurse -Force "VBCABLE_Driver_Pack45" + } + if (Test-Path "VBCABLE_Driver_Pack45.zip") { + Remove-Item -Force "VBCABLE_Driver_Pack45.zip" + } - name: Start Windows Audio Service run: net start audiosrv