Skip to content

Commit 1e51288

Browse files
committed
Switch from Travis to GitHub actions
Signed-off-by: Daniel Egger <[email protected]>
1 parent 1d6e6ae commit 1e51288

File tree

7 files changed

+77
-93
lines changed

7 files changed

+77
-93
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
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

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

.github/workflows/rustfmt.yml

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

.travis.yml

Lines changed: 0 additions & 51 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 & 10 deletions
This file was deleted.

ci/script.sh

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

0 commit comments

Comments
 (0)