diff options
author | Paul Adenot <[email protected]> | 2023-04-24 14:34:33 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2023-04-26 14:28:46 +0200 |
commit | 9517d4e837a6bc9f50c35bd7df57153fc002e5e0 (patch) | |
tree | e5726ccdc823a5966923acb6e587061f982b70c4 | |
parent | d3820eb36536d4e14efc75f881ff56a5b65f90bd (diff) | |
download | cubeb-9517d4e837a6bc9f50c35bd7df57153fc002e5e0.tar.gz cubeb-9517d4e837a6bc9f50c35bd7df57153fc002e5e0.zip |
Install virtual audio devices on Windows runners, enable microphone permission globally
-rw-r--r-- | .github/workflows/build.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d05963f..202f7e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,17 @@ jobs: run: pulseaudio -D --start if: matrix.os == 'ubuntu-20.04' + - name: Install virtual audio devices (Windows) + run: git clone https://github.com/LABSN/sound-ci-helpers && powershell sound-ci-helpers/windows/setup_sound.ps1 + if: ${{ matrix.os == 'windows-2019' }} + + - name: Allow microphone access to all apps (Windows) + shell: pwsh + run: | + New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy\" + New-ItemProperty -Path "HKLM:\SOFTWARE\policies\microsoft\windows\appprivacy" -Name "LetAppsAccessMicrophone" -Value "0x00000001" -PropertyType "dword" + if: ${{ matrix.os == 'windows-2019' }} + - name: Configure CMake shell: bash run: cmake -S . -B build -DCMAKE_BUILD_TYPE=$BUILD_TYPE |