Skip to content

Commit d361e1a

Browse files
authored
Auto merge of #472 - jrmuizel:gah, r=jdm
Prepare github actions CI for use by homu. None
2 parents b54d422 + c599e49 commit d361e1a

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/rust.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,34 @@ name: Rust
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: ["**"]
66
pull_request:
7-
branches: [ master ]
7+
branches: ["**"]
88

99
env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
1313
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]
1718
steps:
1819
- uses: actions/checkout@v2
1920
- name: Build
2021
run: cargo build --verbose
2122
- name: Run tests
2223
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()"

0 commit comments

Comments
 (0)