Browse Source

Add github workflow for building

master
Marc Poulhiès 3 years ago
parent
commit
dcd5d09191
  1. 15
      .github/workflows/format.yml
  2. 15
      .github/workflows/rust.yml

15
.github/workflows/format.yml

@ -0,0 +1,15 @@
name: Rust
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Add Tool
run: rustup component add rustfmt
- name: Check Format
run: cargo fmt -- --check

15
.github/workflows/rust.yml

@ -0,0 +1,15 @@
name: Rust
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Add Target
run: rustup target add thumbv7em-none-eabihf
- name: Build
run: cargo build --verbose --target=thumbv7em-none-eabihf
Loading…
Cancel
Save