Skip to content

Commit af4b411

Browse files
committed
Add Github Actions.
1 parent b8e8e27 commit af4b411

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/format.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Format
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
check:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Add Tool
13+
run: rustup component add rustfmt
14+
- name: Check Format
15+
run: cargo fmt -- --check

.github/workflows/rust.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v1
13+
with:
14+
submodules: true
15+
- name: Add Target
16+
run: rustup target add thumbv7em-none-eabi
17+
- name: Build
18+
run: cargo build --verbose --target=thumbv7em-none-eabi

0 commit comments

Comments
 (0)