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:
15
15
- 1.31.0
16
16
- stable
17
17
- beta
18
- # disable because github actions does not have ability to allow failure
19
- # - nightly
18
+ - nightly
20
19
target :
21
20
- " "
22
21
- x86_64-unknown-linux-musl
22
+ include :
23
+ - rust : nightly
24
+ allow_failure : true
23
25
exclude :
24
26
- os : macOS-latest
25
27
target : x86_64-unknown-linux-musl
@@ -29,12 +31,17 @@ jobs:
29
31
- os : ubuntu-latest
30
32
rust : beta
31
33
target : x86_64-unknown-linux-musl
34
+ - os : ubuntu-latest
35
+ rust : nightly
36
+ target : x86_64-unknown-linux-musl
32
37
- os : macOS-latest
33
38
rust : 1.31.0
34
39
- os : macOS-latest
35
40
rust : beta
36
- # - os: macOS-latest
37
- # rust: nightly
41
+ - os : macOS-latest
42
+ rust : nightly
43
+ env :
44
+ RUST_BACKTRACE : 1
38
45
steps :
39
46
- uses : actions/checkout@v1
40
47
- uses : actions-rs/toolchain@v1
@@ -44,25 +51,21 @@ jobs:
44
51
- name : Build
45
52
run : cargo build --all --verbose
46
53
env :
47
- RUST_BACKTRACE : 1
48
54
TARGET : ${{ matrix.target }}
55
+ continue-on-error : ${{ matrix.allow_failure }}
49
56
- name : Run tests
50
57
run : cargo test --all --verbose
51
58
env :
52
- RUST_BACKTRACE : 1
53
59
TARGET : ${{ matrix.target }}
60
+ continue-on-error : ${{ matrix.allow_failure }}
54
61
fmt :
55
62
runs-on : ubuntu-latest
56
63
steps :
57
64
- uses : actions/checkout@v1
58
- - id : component
59
- uses : actions-rs/components-nightly@v1
60
- with :
61
- component : rustfmt
62
65
- uses : actions-rs/toolchain@v1
63
66
with :
64
- toolchain : ${{ steps.component.outputs.toolchain }}
65
- override : true
67
+ toolchain : nightly
66
68
components : rustfmt
69
+ override : true
67
70
- name : Run fmt check
68
71
run : cargo fmt --all -- --check
You can’t perform that action at this time.
0 commit comments