Skip to content

Commit

Permalink
Test i686-unknown-linux-gnu and aarch64-unknown-linux-gnu on CI (#2447)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e authored May 27, 2021
1 parent 3ee42c6 commit e21b515
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
37 changes: 29 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,40 @@ defaults:

jobs:
test:
name: cargo +${{ matrix.rust }} test (${{ matrix.os }})
name: cargo test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
rust:
- nightly
os:
- ubuntu-latest
- macos-latest
- windows-latest
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install Rust
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe.
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
run: rustup update nightly --no-self-update && rustup default nightly
- run: cargo test --workspace --all-features
- run: cargo test --workspace --all-features --release

cross:
name: cross test --target ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
target:
- i686-unknown-linux-gnu
- aarch64-unknown-linux-gnu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup update nightly && rustup default nightly
- run: cargo install cross
- run: cross test --target ${{ matrix.target }} --workspace --all-features
- run: cross test --target ${{ matrix.target }} --workspace --all-features --release

core-msrv:
name: cargo +${{ matrix.rust }} build (futures-{core, io, sink, task})
strategy:
Expand Down Expand Up @@ -100,6 +116,7 @@ jobs:
build:
name: cargo +${{ matrix.rust }} build
strategy:
fail-fast: false
matrix:
rust:
- stable
Expand Down Expand Up @@ -130,10 +147,13 @@ jobs:
no-std:
name: cargo build --target ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
# thumbv7m-none-eabi supports atomic CAS.
# thumbv6m-none-eabi supports atomic, but not atomic CAS.
target:
- thumbv6m-none-eabi
- thumbv7m-none-eabi
- thumbv6m-none-eabi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -210,6 +230,7 @@ jobs:
san:
name: cargo test -Z sanitizer=${{ matrix.sanitizer }}
strategy:
fail-fast: false
matrix:
sanitizer:
- address
Expand Down
2 changes: 2 additions & 0 deletions futures/tests/async_await_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ fn select_nested() {
assert_eq!(res, 3);
}

#[cfg_attr(not(target_pointer_width = "64"), ignore)]
#[test]
fn select_size() {
let fut = async {
Expand Down Expand Up @@ -212,6 +213,7 @@ fn select_on_non_unpin_expressions_with_default() {
assert_eq!(res, 5);
}

#[cfg_attr(not(target_pointer_width = "64"), ignore)]
#[test]
fn select_on_non_unpin_size() {
// The returned Future is !Unpin
Expand Down

0 comments on commit e21b515

Please sign in to comment.