Skip to content

Commit e626c84

Browse files
Merge #216
216: Switch from Travis to GitHub actions r=ryankurte a=therealprof Signed-off-by: Daniel Egger <[email protected]> Co-authored-by: Daniel Egger <[email protected]>
2 parents 1d6e6ae + 33e16f1 commit e626c84

File tree

8 files changed

+89
-94
lines changed

8 files changed

+89
-94
lines changed

.github/bors.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
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.35.0, x86_64-unknown-linux-gnu)",
9+
]

.github/workflows/ci.yml

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

.github/workflows/clippy.yml

+20
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

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

.travis.yml

-51
This file was deleted.

ci/after_success.sh

-20
This file was deleted.

ci/install.sh

-10
This file was deleted.

ci/script.sh

-12
This file was deleted.

0 commit comments

Comments
 (0)