@@ -83,6 +83,34 @@ commands:
83
83
glean_parser coverage --allow-reserved -c glean_coverage.txt -f codecovio -o codecov.json glean-core/metrics.yaml
84
84
bin/codecov.sh -X yaml -f codecov.json
85
85
86
+ test-rust-native-dispatcher :
87
+ steps :
88
+ - run :
89
+ name : Install required dependencies
90
+ command : |
91
+ sudo apt update
92
+ sudo apt install -y cmake ninja-build clang
93
+ - run :
94
+ name : Install libdispatch
95
+ command : |
96
+ cd ~
97
+ git clone https://github.com/apple/swift-corelibs-libdispatch
98
+ cd swift-corelibs-libdispatch
99
+ mkdir build && cd build
100
+ cmake -G Ninja \
101
+ -DCMAKE_C_COMPILER=clang \
102
+ -DCMAKE_CXX_COMPILER=clang++ \
103
+ -DCMAKE_BUILD_WITH_INSTALL_RPATH=On \
104
+ ..
105
+ ninja
106
+ sudo ninja install
107
+
108
+ - run :
109
+ name : Run Rust tests with native dispatcher
110
+ command : |
111
+ export LD_LIBRARY_PATH=/usr/local/lib
112
+ cargo test --verbose --jobs 6 --features native-dispatcher -- --nocapture
113
+
86
114
install-rustup :
87
115
steps :
88
116
- run :
@@ -324,6 +352,7 @@ jobs:
324
352
resource_class : " medium+"
325
353
steps :
326
354
- test-rust
355
+ - test-rust-native-dispatcher
327
356
328
357
Rust tests - beta :
329
358
docker :
@@ -529,12 +558,6 @@ jobs:
529
558
keys :
530
559
- v2-cargo-cache-{{arch}}-{{checksum "buildtype.txt"}}-{{checksum "Cargo.lock"}}
531
560
532
- # Experimental - we might move this to Linux with an appropriate libdispatch later
533
- - run :
534
- name : Run Rust tests with native dispatcher
535
- command : |
536
- cargo test --verbose --jobs 6 --features native-dispatcher -- --nocapture
537
-
538
561
- run :
539
562
name : Run iOS build
540
563
command : bash bin/run-ios-build.sh
0 commit comments