Skip to content

Commit

Permalink
Begin cleaning up the TCC code
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Oct 13, 2024
1 parent 493eab6 commit 947a44c
Showing 1 changed file with 6 additions and 26 deletions.
32 changes: 6 additions & 26 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,23 +193,6 @@ jobs:
- { qt: '5.14.2', os: macos-15, cc: gcc }
- { qt: '5.15.2', os: macos-14, cc: gcc }
- { qt: '5.15.2', os: macos-15, cc: gcc }
# Exclude Qt 5.x and 6.2 with Clang on macOS 14+, since these have unit tests that hang on GitHub's runners.
#- { qt: '5.9.9', os: macos-14, cc: clang } # \todo Explore these hangs on a local macOS host,
#- { qt: '5.9.9', os: macos-15, cc: clang } # \todo because they might not be specific to GitHub.
#- { qt: '5.10.1', os: macos-14, cc: clang }
#- { qt: '5.10.1', os: macos-15, cc: clang }
#- { qt: '5.11.3', os: macos-14, cc: clang }
#- { qt: '5.11.3', os: macos-15, cc: clang }
#- { qt: '5.12.12', os: macos-14, cc: clang }
#- { qt: '5.12.12', os: macos-15, cc: clang }
#- { qt: '5.13.2', os: macos-14, cc: clang }
#- { qt: '5.13.2', os: macos-15, cc: clang }
#- { qt: '5.14.2', os: macos-14, cc: clang }
#- { qt: '5.14.2', os: macos-15, cc: clang }
#- { qt: '5.15.2', os: macos-14, cc: clang }
#- { qt: '5.15.2', os: macos-15, cc: clang }
#- { qt: '6.2.4', os: macos-14, cc: clang }
#- { qt: '6.2.4', os: macos-15, cc: clang }
# Exclude Qt 5.10 with GCC on macOS. See https://bugreports.qt.io/browse/QTBUG-66585
- { qt: '5.10.1', cc: gcc }
# Exclude Qt 6.x with GCC on macOS for now. See https://bugreports.qt.io/browse/QTBUG-107050
Expand All @@ -221,15 +204,6 @@ jobs:
- { qt: '6.7.3', cc: gcc }
- { qt: '6.8.0', cc: gcc }
steps:
- run: sqlite3 "$HOME/Library/Application Support/com.apple.TCC/TCC.db" '.schema'
- if: matrix.os != 'macos-13'
run: >
sudo sqlite3 "$HOME/Library/Application Support/com.apple.TCC/TCC.db" "INSERT or REPLACE INTO access
( service, client, client_type, auth_value, auth_reason, auth_version, flags ) VALUES
( 'kTCCServiceBluetoothAlways', '/usr/local/opt/runner/provisioner/provisioner', 1, 2, 3, 1, 0 )"
# ( 'kTCCServiceBluetoothPeripheral', '/usr/local/opt/runner/provisioner/provisioner', 1, 2, 3, 1, 0 ),
# ( 'kTCCServiceBluetoothWhileInUse', '/usr/local/opt/runner/provisioner/provisioner', 1, 2, 3, 1, 0 )"
- run: sqlite3 "$HOME/Library/Application Support/com.apple.TCC/TCC.db" 'select * from access'
- uses: actions/checkout@v4
- name: Install lcov
run: brew install lcov
Expand Down Expand Up @@ -294,6 +268,12 @@ jobs:
"$RUNNER_TEMP/release/src/cli/dokit.app/Contents/MacOS/dokit" --version
[[ '${{ matrix.os }}' == 'macos-13' && '${{ matrix.cc }}' == 'clang' ]] ||
"$RUNNER_TEMP/coverage/src/cli/dokit.app/Contents/MacOS/dokit" --version
- name: Grant Bluetooth permission
if: matrix.os != 'macos-13' && !startsWith(matrix.qt, '5') && !startsWith(matrix.qt, '6.2.')
run: >
sudo sqlite3 "$HOME/Library/Application Support/com.apple.TCC/TCC.db" "INSERT or REPLACE INTO access
( service, client, client_type, auth_value, auth_reason, auth_version, flags ) VALUES
( 'kTCCServiceBluetoothAlways', '/usr/local/opt/runner/provisioner/provisioner', 1, 2, 3, 1, 0 )"
- name: Test
run: |
[[ '${{ matrix.os }}' == 'macos-13' && '${{ matrix.cc }}' == 'clang' ]] ||
Expand Down

0 comments on commit 947a44c

Please sign in to comment.