зеркало из https://github.com/mozilla/cubeb.git
CI: use macos-13 environment and add macos-14 (arm64 M1)
Add a workaround for microphone permission: https://github.com/actions/runner-images/issues/9330 Co-authored-by: Andreas Pehrson <apehrson@mozilla.com>
This commit is contained in:
Родитель
1eb7e6824f
Коммит
1572ea3e8d
|
@ -9,7 +9,7 @@ jobs:
|
|||
BUILD_TYPE: ${{ matrix.type }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-20.04, windows-2019, macos-11]
|
||||
os: [ubuntu-20.04, windows-2019, macos-13, macos-14]
|
||||
type: [Release, Debug]
|
||||
|
||||
steps:
|
||||
|
@ -36,6 +36,20 @@ jobs:
|
|||
New-ItemProperty -Path "HKLM:\SOFTWARE\policies\microsoft\windows\appprivacy" -Name "LetAppsAccessMicrophone" -Value "0x00000001" -PropertyType "dword"
|
||||
if: ${{ matrix.os == 'windows-2019' }}
|
||||
|
||||
- name: Install virtual audio devices (macOS)
|
||||
if: ${{ matrix.os == 'macos-13' || matrix.os == 'macos-14' }}
|
||||
run: |
|
||||
brew install switchaudio-osx
|
||||
brew install blackhole-2ch
|
||||
SwitchAudioSource -s "BlackHole 2ch" -t input
|
||||
SwitchAudioSource -s "BlackHole 2ch" -t output
|
||||
|
||||
- name: Allow microphone access to all apps (macOS)
|
||||
if: ${{ matrix.os == 'macos-13' || matrix.os == 'macos-14' }}
|
||||
env:
|
||||
tcc_extra_columns: ${{ matrix.os == 'macos-14' && ',NULL,NULL,''UNUSED'',1687786159' || '' }}
|
||||
run: sqlite3 $HOME/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT OR IGNORE INTO access VALUES ('kTCCServiceMicrophone','/usr/local/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159${{ env.tcc_extra_columns }});"
|
||||
|
||||
- name: Configure CMake
|
||||
shell: bash
|
||||
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
||||
|
|
Загрузка…
Ссылка в новой задаче