Skip to content

Commit

Permalink
CI: Move native-dispatcher tests to Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
badboy committed Dec 21, 2022
1 parent 3cf5d5f commit b07c21b
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,34 @@ commands:
glean_parser coverage --allow-reserved -c glean_coverage.txt -f codecovio -o codecov.json glean-core/metrics.yaml
bin/codecov.sh -X yaml -f codecov.json
test-rust-native-dispatcher:
steps:
- run:
name: Install required dependencies
command: |
sudo apt update
sudo apt install -y cmake ninja-build clang
- run:
name: Install libdispatch
command: |
cd ~
git clone https://github.com/apple/swift-corelibs-libdispatch
cd swift-corelibs-libdispatch
mkdir build && cd build
cmake -G Ninja \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=On \
..
ninja
sudo ninja install
- run:
name: Run Rust tests with native dispatcher
command: |
export LD_LIBRARY_PATH=/usr/local/lib
cargo test --verbose --jobs 6 --features native-dispatcher -- --nocapture
install-rustup:
steps:
- run:
Expand Down Expand Up @@ -324,6 +352,7 @@ jobs:
resource_class: "medium+"
steps:
- test-rust
- test-rust-native-dispatcher

Rust tests - beta:
docker:
Expand Down Expand Up @@ -529,12 +558,6 @@ jobs:
keys:
- v2-cargo-cache-{{arch}}-{{checksum "buildtype.txt"}}-{{checksum "Cargo.lock"}}

# Experimental - we might move this to Linux with an appropriate libdispatch later
- run:
name: Run Rust tests with native dispatcher
command: |
cargo test --verbose --jobs 6 --features native-dispatcher -- --nocapture
- run:
name: Run iOS build
command: bash bin/run-ios-build.sh
Expand Down

0 comments on commit b07c21b

Please sign in to comment.