Skip to content

Commit e5c15d4

Browse files
committed
Test i686-unknown-linux-gnu and aarch64-unknown-linux-gnu on CI (#2447)
1 parent b32fbc4 commit e5c15d4

File tree

2 files changed

+31
-8
lines changed

2 files changed

+31
-8
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,40 @@ defaults:
1919

2020
jobs:
2121
test:
22-
name: cargo +${{ matrix.rust }} test (${{ matrix.os }})
22+
name: cargo test (${{ matrix.os }})
2323
strategy:
24+
fail-fast: false
2425
matrix:
25-
rust:
26-
- nightly
2726
os:
28-
- ubuntu-latest
29-
- macos-latest
30-
- windows-latest
27+
- ubuntu-latest
28+
- macos-latest
29+
- windows-latest
3130
runs-on: ${{ matrix.os }}
3231
steps:
3332
- uses: actions/checkout@v2
3433
- name: Install Rust
3534
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe.
36-
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
35+
run: rustup update nightly --no-self-update && rustup default nightly
3736
- run: cargo test --workspace --all-features
3837
- run: cargo test --workspace --all-features --release
3938

39+
cross:
40+
name: cross test --target ${{ matrix.target }}
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
target:
45+
- i686-unknown-linux-gnu
46+
- aarch64-unknown-linux-gnu
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@v2
50+
- name: Install Rust
51+
run: rustup update nightly && rustup default nightly
52+
- run: cargo install cross
53+
- run: cross test --target ${{ matrix.target }} --workspace --all-features
54+
- run: cross test --target ${{ matrix.target }} --workspace --all-features --release
55+
4056
core-msrv:
4157
name: cargo +${{ matrix.rust }} build (futures-{core, io, sink, task})
4258
strategy:
@@ -100,6 +116,7 @@ jobs:
100116
build:
101117
name: cargo +${{ matrix.rust }} build
102118
strategy:
119+
fail-fast: false
103120
matrix:
104121
rust:
105122
- stable
@@ -130,10 +147,13 @@ jobs:
130147
no-std:
131148
name: cargo build --target ${{ matrix.target }}
132149
strategy:
150+
fail-fast: false
133151
matrix:
152+
# thumbv7m-none-eabi supports atomic CAS.
153+
# thumbv6m-none-eabi supports atomic, but not atomic CAS.
134154
target:
135-
- thumbv6m-none-eabi
136155
- thumbv7m-none-eabi
156+
- thumbv6m-none-eabi
137157
runs-on: ubuntu-latest
138158
steps:
139159
- uses: actions/checkout@v2
@@ -210,6 +230,7 @@ jobs:
210230
san:
211231
name: cargo test -Z sanitizer=${{ matrix.sanitizer }}
212232
strategy:
233+
fail-fast: false
213234
matrix:
214235
sanitizer:
215236
- address

futures/tests/async_await_macros.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ fn select_nested() {
158158
assert_eq!(res, 3);
159159
}
160160

161+
#[cfg_attr(not(target_pointer_width = "64"), ignore)]
161162
#[test]
162163
fn select_size() {
163164
let fut = async {
@@ -212,6 +213,7 @@ fn select_on_non_unpin_expressions_with_default() {
212213
assert_eq!(res, 5);
213214
}
214215

216+
#[cfg_attr(not(target_pointer_width = "64"), ignore)]
215217
#[test]
216218
fn select_on_non_unpin_size() {
217219
// The returned Future is !Unpin

0 commit comments

Comments
 (0)