From d56466cb168035d7a44957e83d3e76c59f01bb1d Mon Sep 17 00:00:00 2001 From: Josiah Oberholtzer Date: Mon, 17 Jul 2023 15:48:36 -0400 Subject: [PATCH] Tinker with Scream --- .github/workflows/test.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 457b76dbf..bbdcd9923 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -130,12 +130,19 @@ jobs: - name: Setup audio (Windows) # https://github.com/actions/runner-images/issues/2528#issuecomment-934857719 if: ${{ matrix.os == 'windows-latest' }} shell: powershell + # Via https://github.com/actions/runner-images/issues/6983 run: | + Start-Service audio* Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/3.9/Scream3.9.zip -OutFile Scream3.9.zip Expand-Archive -Path Scream3.9.zip -DestinationPath Scream Import-Certificate -FilePath Scream\Install\driver\x64\Scream.cat -CertStoreLocation Cert:\LocalMachine\TrustedPublisher - Scream\Install\helpers\devcon-x64.exe install Scream\Install\driver\x64\Scream.inf *Scream - net start audiosrv + $cert = (Get-AuthenticodeSignature C:\Scream\Install\driver\Scream.sys).SignerCertificate + $store = [System.Security.Cryptography.X509Certificates.X509Store]::new("TrustedPublisher", "LocalMachine") + $store.Open("ReadWrite") + $store.Add($cert) + $store.Close() + cd C:\Scream\Install\driver + C:\Scream\Install\helpers\devcon install Scream.inf *Scream Get-CimInstance Win32_SoundDevice | fl * timeout-minutes: 2 - name: Sanity-check Supriya