Skip to content

Commit 274306f

Browse files
committed
ci: Use libMainThreadChecker to test if all functions run on the correct thread
Xcode provides a tool called the “Main Thread Checker” which verifies that UI APIs are being used from the correct thread
1 parent e3334b9 commit 274306f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/integration.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,6 @@ jobs:
7878
- name: Run integration tests in release mode
7979
if: matrix.features != 'wayland' && matrix.features != 'libei' && matrix.features != 'libei,wayland,xdo,x11rb' # On Linux, the integration tests only work with X11 for now
8080
run: cargo test integration --release --no-default-features --features ${{ matrix.features }} -- --test-threads=1 --nocapture --include-ignored
81+
env:
82+
DYLD_INSERT_LIBRARIES: /Applications/Xcode.app/Contents/Developer/usr/lib/libMainThreadChecker.dylib
83+
MTC_RESET_INSERT_LIBRARIES: 0

0 commit comments

Comments
 (0)