Skip to content

Commit 6f63863

Browse files
committed
Add github worker for CI and remove Travis.
Fixes #105
1 parent d4f63b6 commit 6f63863

File tree

2 files changed

+54
-41
lines changed

2 files changed

+54
-41
lines changed

.github/workflows/test.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
on: [push, pull_request]
2+
3+
name: Test
4+
5+
jobs:
6+
test:
7+
name: cargo test
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
rust:
12+
- stable
13+
- beta
14+
- nightly
15+
- 1.41.0
16+
steps:
17+
- name: checkout
18+
uses: actions/checkout@v2
19+
- name: toolchain
20+
uses: actions-rs/toolchain@v1
21+
with:
22+
profile: minimal
23+
toolchain: ${{ matrix.rust }}
24+
target: thumbv7em-none-eabi
25+
override: true
26+
- name: test
27+
uses: actions-rs/cargo@v1
28+
with:
29+
command: test
30+
- name: nightly
31+
uses: actions-rs/cargo@v1
32+
with:
33+
command: test
34+
args: --features nightly
35+
- name: no-default-features
36+
uses: actions-rs/cargo@v1
37+
with:
38+
command: test
39+
args: --no-default-features
40+
- name: std
41+
uses: actions-rs/cargo@v1
42+
with:
43+
command: test
44+
args: --no-default-features --features std
45+
- name: std i128
46+
uses: actions-rs/cargo@v1
47+
with:
48+
command: test
49+
args: --no-default-features --features "std i128"
50+
- name: no std build
51+
uses: actions-rs/cargo@v1
52+
with:
53+
command: build
54+
args: --no-default-features --target thumbv7em-none-eabi

.travis.yml

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

0 commit comments

Comments
 (0)