Skip to content

Commit

Permalink
Use platform specific devices
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Nov 20, 2023
1 parent a1a7507 commit e8f97f4
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/test.yml
Expand Up @@ -43,10 +43,25 @@ jobs:
- name: Build Current Binary
run: npm run build

- name: Provide Audio Device
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'windows-2022' || matrix.os == 'macos-11'
- name: Audio Device - Unix
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-11'
uses: LABSN/sound-ci-helpers@v1

- name: Audio Device - Windows
if: matrix.os == 'windows-2022'
shell: powershell
run: |
Start-Service audio*
Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/3.6/Scream3.6.zip -OutFile C:\Scream3.6.zip
Extract-7Zip -Path C:\Scream3.6.zip -DestinationPath C:\Scream
$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
- name: Run Unit Tests
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'windows-2022' || matrix.os == 'macos-11'
run: npm test

0 comments on commit e8f97f4

Please sign in to comment.