-
Notifications
You must be signed in to change notification settings - Fork 996
73 lines (65 loc) · 1.85 KB
/
bors.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: CI (bors)
on:
push:
branches:
- auto-libc
- try
jobs:
style_check:
name: Style check
runs-on: ubuntu-20.04
steps:
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: sh ./ci/install-rust.sh
- name: Check style
run: sh ci/style.sh
docker_linux_tier2:
name: Docker Linux Tier2
runs-on: ubuntu-20.04
strategy:
fail-fast: true
max-parallel: 12
matrix:
target: [
wasm32-wasi,
]
steps:
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
- name: Execute run-docker.sh
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
# These jobs doesn't actually test anything, but they're only used to tell
# bors the build completed, as there is no practical way to detect when a
# workflow is successful listening to webhooks only.
#
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
end_success:
name: bors build finished
if: github.event.pusher.name == 'bors' && success()
runs-on: ubuntu-20.04
needs: [
docker_linux_tier2,
style_check,
]
steps:
- name: Mark the job as successful
run: exit 0
end_failure:
name: bors build finished
if: github.event.pusher.name == 'bors' && (failure() || cancelled())
runs-on: ubuntu-20.04
needs: [
docker_linux_tier2,
style_check,
]
steps:
- name: Mark the job as a failure
run: exit 1