Skip to content

Commit

Permalink
Run the tests on macOS 14
Browse files Browse the repository at this point in the history
  • Loading branch information
padenot committed Apr 22, 2024
1 parent d9c630d commit 9328f60
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -19,7 +19,7 @@ jobs:
- os: windows-2019
rust: nightly
experimental: true
- os: macos-10.15
- os: macos-14
rust: nightly
experimental: true

Expand All @@ -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
Expand Down

0 comments on commit 9328f60

Please sign in to comment.