aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authoraeiouaeiouaeiouaeiouaeiouaeiou <[email protected]>2024-03-23 00:38:56 +0300
committerPaul Adenot <[email protected]>2024-03-25 11:10:50 +0100
commit1572ea3e8d50514d3adaba1ad17272f57b5b331c (patch)
tree2ef03015e0d99a26d672c3d49b457d419af6a48c /.github/workflows
parent1eb7e6824f2e7d683b99b7e79d8715b231a0781d (diff)
downloadcubeb-1572ea3e8d50514d3adaba1ad17272f57b5b331c.tar.gz
cubeb-1572ea3e8d50514d3adaba1ad17272f57b5b331c.zip
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 <[email protected]>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml16
1 files changed, 15 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 2e29a5b..b7cb72a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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