From 9328f600e868267d84e9c77c8d13ef0959e88542 Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Mon, 22 Apr 2024 10:36:03 +0200 Subject: [PATCH] Run the tests on macOS 14 --- .github/workflows/build.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f0d2d98..7fe0d14 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04, windows-2019, macos-10.15] + os: [ubuntu-20.04, windows-2019, macos-14] rust: [stable] experimental: [false] include: @@ -19,7 +19,7 @@ jobs: - os: windows-2019 rust: nightly experimental: true - - os: macos-10.15 + - os: macos-14 rust: nightly experimental: true @@ -44,6 +44,20 @@ jobs: shell: bash run: rustup run ${{ matrix.rust }} cargo build --all + - name: Setup Audio + if: ${{ 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: Grant microphone access + if: ${{ 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: Test shell: bash run: rustup run ${{ matrix.rust }} cargo test --all