Skip to content

Commit

Permalink
CI: use macos-13 environment and add macos-14 (arm64 M1)
Browse files Browse the repository at this point in the history
Add a workaround for microphone permission: actions/runner-images#9330

Co-authored-by: Andreas Pehrson <[email protected]>
  • Loading branch information
2 people authored and padenot committed Mar 25, 2024
1 parent 1eb7e68 commit 1572ea3
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 1572ea3

Please sign in to comment.