File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,34 @@ name: Rust
2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
5
+ branches : ["**" ]
6
6
pull_request :
7
- branches : [ master ]
7
+ branches : ["**" ]
8
8
9
9
env :
10
10
CARGO_TERM_COLOR : always
11
11
12
12
jobs :
13
13
build :
14
-
15
- runs-on : macos-11.0
16
-
14
+ runs-on : ${{ matrix.os }}
15
+ strategy :
16
+ matrix :
17
+ os : [macos-11.0, macos-10.15]
17
18
steps :
18
19
- uses : actions/checkout@v2
19
20
- name : Build
20
21
run : cargo build --verbose
21
22
- name : Run tests
22
23
run : cargo test --verbose
24
+ build_result :
25
+ name : homu build finished
26
+ runs-on : ubuntu-latest
27
+ needs :
28
+ - " build"
29
+ steps :
30
+ - name : Mark the job as successful
31
+ run : exit 0
32
+ if : success()
33
+ - name : Mark the job as unsuccessful
34
+ run : exit 1
35
+ if : " !success()"
You can’t perform that action at this time.
0 commit comments