Skip to content

Commit

Permalink
Test all crates at once in cross tests
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Dec 31, 2020
1 parent c2592d0 commit 661e976
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,10 @@ jobs:

# Test crates on non x86_64 architectures.
cross:
env:
TARGET: ${{ matrix.target }}
strategy:
matrix:
crates:
- crossbeam
- crossbeam-channel
- crossbeam-deque
- crossbeam-epoch
- crossbeam-queue
- crossbeam-skiplist
- crossbeam-utils
target:
- i686-unknown-linux-gnu
- aarch64-unknown-linux-gnu
Expand All @@ -69,10 +63,8 @@ jobs:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup update stable && rustup default stable
- name: Install cross
run: cargo install cross
- name: Test
run: cross test --package ${{ matrix.crates }} --target ${{ matrix.target }}
run: ./ci/cross.sh

# Check all feature combinations works properly.
features:
Expand Down
8 changes: 8 additions & 0 deletions ci/cross.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

cd "$(dirname "$0")"/..
set -ex

cargo install cross

cross test --target "$TARGET" --all --exclude benchmarks

0 comments on commit 661e976

Please sign in to comment.