Skip to content

Commit f3fa6a3

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 012beef commit f3fa6a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/integration.yml

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

8487
- name: Take screenshot
8588
if: always()
@@ -88,3 +91,4 @@ jobs:
8891
platform: ${{ matrix.platform }}
8992
rust: ${{ matrix.rust }}
9093
feature: ${{ matrix.features }}
94+

0 commit comments

Comments
 (0)