Skip to content

Commit 6d360d6

Browse files
bors[bot]eldruin
andauthored
Merge #272
272: [v0.2.x] GHA CI r=ryankurte a=eldruin Backport moving CI to GHA Co-authored-by: Diego Barrios Romero <[email protected]>
2 parents 384b493 + 4df0da2 commit 6d360d6

File tree

20 files changed

+236
-187
lines changed

20 files changed

+236
-187
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @rust-embedded/hal @ilya-epifanov @thejpster
1+
* @rust-embedded/hal

.github/bors.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
block_labels = ["needs-decision"]
22
delete_merged_branches = true
33
required_approvals = 1
4-
status = ["continuous-integration/travis-ci/push"]
4+
status = [
5+
"ci-linux (stable, x86_64-unknown-linux-gnu)",
6+
"ci-linux (stable, thumbv6m-none-eabi)",
7+
"ci-linux (stable, thumbv7m-none-eabi)",
8+
"ci-linux (1.31.0, x86_64-unknown-linux-gnu)",
9+
"fmt",
10+
]

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Continuous integration
7+
8+
env:
9+
RUSTFLAGS: '--deny warnings'
10+
11+
jobs:
12+
ci-linux:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
# All generated code should be running on stable now
17+
rust: [stable]
18+
19+
# The default target we're compiling on and for
20+
TARGET: [x86_64-unknown-linux-gnu, thumbv6m-none-eabi, thumbv7m-none-eabi]
21+
22+
include:
23+
- rust: 1.31.0
24+
TARGET: x86_64-unknown-linux-gnu
25+
26+
# Test nightly but don't fail
27+
- rust: nightly
28+
experimental: true
29+
TARGET: x86_64-unknown-linux-gnu
30+
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: actions-rs/toolchain@v1
34+
with:
35+
profile: minimal
36+
toolchain: ${{ matrix.rust }}
37+
target: ${{ matrix.TARGET }}
38+
override: true
39+
- uses: actions-rs/cargo@v1
40+
with:
41+
command: check
42+
args: --target=${{ matrix.TARGET }}
43+
44+
- uses: actions-rs/cargo@v1
45+
with:
46+
command: check
47+
args: --target=${{ matrix.TARGET }} --features unproven
48+

.github/workflows/clippy.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Clippy check
7+
jobs:
8+
clippy_check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions-rs/toolchain@v1
13+
with:
14+
profile: minimal
15+
toolchain: stable
16+
override: true
17+
components: clippy
18+
- uses: actions-rs/clippy-check@v1
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/rustfmt.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Code formatting check
7+
8+
jobs:
9+
fmt:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions-rs/toolchain@v1
14+
with:
15+
profile: minimal
16+
toolchain: stable
17+
override: true
18+
components: rustfmt
19+
- uses: actions-rs/cargo@v1
20+
with:
21+
command: fmt
22+
args: --all -- --check

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Test Suite
7+
8+
env:
9+
RUSTFLAGS: '--deny warnings'
10+
11+
jobs:
12+
ci-linux:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
rust: [nightly]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions-rs/toolchain@v1
21+
with:
22+
profile: minimal
23+
toolchain: ${{ matrix.rust }}
24+
target: ${{ matrix.TARGET }}
25+
override: true
26+
- uses: actions-rs/cargo@v1
27+
with:
28+
command: test
29+
args: --features unproven

.travis.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

ci/after_success.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

ci/install.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

ci/script.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)