Skip to content

Commit 135febe

Browse files
committed
move stable checks to stable compiler
update PR Test runner
1 parent c5a8ad4 commit 135febe

File tree

3 files changed

+57
-7
lines changed

3 files changed

+57
-7
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,38 @@ jobs:
2020
- name: Run doc tests
2121
run: cargo +nightly test --verbose --all-features --doc
2222

23-
test:
23+
nightly_test:
2424
runs-on: ${{ matrix.os }}
2525
strategy:
2626
matrix:
2727
# windows and macos are disabled, because we don't do anything target specific
2828
# os: [ubuntu-latest, windows-latest, macOS-latest]
2929
os: [ubuntu-latest]
3030
rust: [nightly]
31+
features_std: ["", "alloc", "std"]
32+
33+
steps:
34+
- uses: hecrj/setup-rust-action@v1
35+
with:
36+
rust-version: ${{ matrix.rust }}
37+
- uses: actions/checkout@master
38+
- name: Run tests
39+
run: cargo +nightly test --lib --tests --verbose --no-default-features --features "${{ matrix.features_std }}" --features nightly
40+
41+
stable_test:
42+
runs-on: ${{ matrix.os }}
43+
strategy:
44+
matrix:
45+
# windows and macos are disabled, because we don't do anything target specific
46+
# os: [ubuntu-latest, windows-latest, macOS-latest]
47+
os: [ubuntu-latest]
48+
rust: [stable]
3149
features_std: ["", "alloc", "std"]
32-
features_nightly: ["", "nightly"]
3350

3451
steps:
3552
- uses: hecrj/setup-rust-action@v1
3653
with:
3754
rust-version: ${{ matrix.rust }}
3855
- uses: actions/checkout@master
3956
- name: Run tests
40-
run: cargo +nightly test --lib --tests --verbose --no-default-features --features "${{ matrix.features_std }}" --features "${{ matrix.features_nightly }}"
57+
run: cargo +stable test --lib --tests --verbose --no-default-features --features "${{ matrix.features_std }}"

.github/workflows/pr-test-core.yml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,55 @@
11
name: PR test
22
on: [pull_request]
33
jobs:
4-
test:
4+
docs:
55
runs-on: ${{ matrix.os }}
66
strategy:
77
matrix:
88
# windows and macos are disabled, because we don't do anything target specific
99
# os: [ubuntu-latest, windows-latest, macOS-latest]
1010
os: [ubuntu-latest]
1111
rust: [nightly]
12+
13+
steps:
14+
- uses: hecrj/setup-rust-action@v1
15+
with:
16+
rust-version: ${{ matrix.rust }}
17+
- uses: actions/checkout@master
18+
- name: Run doc tests
19+
run: cargo +nightly test --verbose --all-features --doc
20+
21+
nightly_test:
22+
runs-on: ${{ matrix.os }}
23+
strategy:
24+
matrix:
25+
# windows and macos are disabled, because we don't do anything target specific
26+
# os: [ubuntu-latest, windows-latest, macOS-latest]
27+
os: [ubuntu-latest]
28+
rust: [nightly]
29+
features_std: ["", "alloc", "std"]
30+
31+
steps:
32+
- uses: hecrj/setup-rust-action@v1
33+
with:
34+
rust-version: ${{ matrix.rust }}
35+
- uses: actions/checkout@master
36+
- name: Run tests
37+
run: cargo +nightly test --lib --tests --verbose --no-default-features --features "${{ matrix.features_std }}" --features nightly
38+
39+
stable_test:
40+
runs-on: ${{ matrix.os }}
41+
strategy:
42+
matrix:
43+
# windows and macos are disabled, because we don't do anything target specific
44+
# os: [ubuntu-latest, windows-latest, macOS-latest]
45+
os: [ubuntu-latest]
46+
rust: [stable]
1247
features_std: ["", "alloc", "std"]
13-
features_nightly: ["", "nightly"]
1448

1549
steps:
1650
- uses: hecrj/setup-rust-action@v1
1751
with:
1852
rust-version: ${{ matrix.rust }}
1953
- uses: actions/checkout@master
2054
- name: Run tests
21-
run: cargo +nightly test --verbose --no-default-features --features "${{ matrix.features_std }}" --features "${{ matrix.features_nightly }}"
55+
run: cargo +stable test --lib --tests --verbose --no-default-features --features "${{ matrix.features_std }}"

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@
144144
//! a new [`ArrayVec`] without passing in an existing buffer.
145145
//!
146146
//! ```rust
147-
//! # #![cfg_attr(not(feature = "nightly"), ignore)]
148147
//! use generic_vec::ArrayVec;
149148
//!
150149
//! let mut array_vec = ArrayVec::<i32, 16>::new();

0 commit comments

Comments
 (0)