File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,13 @@ jobs:
1515 - 1.31.0
1616 - stable
1717 - beta
18- # disable because github actions does not have ability to allow failure
19- # - nightly
18+ - nightly
2019 target :
2120 - " "
2221 - x86_64-unknown-linux-musl
22+ include :
23+ - rust : nightly
24+ allow_failure : true
2325 exclude :
2426 - os : macOS-latest
2527 target : x86_64-unknown-linux-musl
@@ -29,12 +31,17 @@ jobs:
2931 - os : ubuntu-latest
3032 rust : beta
3133 target : x86_64-unknown-linux-musl
34+ - os : ubuntu-latest
35+ rust : nightly
36+ target : x86_64-unknown-linux-musl
3237 - os : macOS-latest
3338 rust : 1.31.0
3439 - os : macOS-latest
3540 rust : beta
36- # - os: macOS-latest
37- # rust: nightly
41+ - os : macOS-latest
42+ rust : nightly
43+ env :
44+ RUST_BACKTRACE : 1
3845 steps :
3946 - uses : actions/checkout@v1
4047 - uses : actions-rs/toolchain@v1
@@ -44,25 +51,21 @@ jobs:
4451 - name : Build
4552 run : cargo build --all --verbose
4653 env :
47- RUST_BACKTRACE : 1
4854 TARGET : ${{ matrix.target }}
55+ continue-on-error : ${{ matrix.allow_failure }}
4956 - name : Run tests
5057 run : cargo test --all --verbose
5158 env :
52- RUST_BACKTRACE : 1
5359 TARGET : ${{ matrix.target }}
60+ continue-on-error : ${{ matrix.allow_failure }}
5461 fmt :
5562 runs-on : ubuntu-latest
5663 steps :
5764 - uses : actions/checkout@v1
58- - id : component
59- uses : actions-rs/components-nightly@v1
60- with :
61- component : rustfmt
6265 - uses : actions-rs/toolchain@v1
6366 with :
64- toolchain : ${{ steps.component.outputs.toolchain }}
65- override : true
67+ toolchain : nightly
6668 components : rustfmt
69+ override : true
6770 - name : Run fmt check
6871 run : cargo fmt --all -- --check
You can’t perform that action at this time.
0 commit comments