va416xx/.github/workflows/ci.yml

64 lines
1.5 KiB
YAML
Raw Normal View History

2021-12-10 10:23:16 +01:00
on: [push]
name: build
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: thumbv7em-none-eabihf
override: true
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: check
args: --target thumbv7em-none-eabihf
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
# clippy:
# name: Clippy
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# target: thumbv7em-none-eabihf
# override: true
# - run: rustup component add clippy
# - uses: actions-rs/cargo@v1
# with:
# use-cross: true
# command: clippy
# args: --target thumbv7em-none-eabihf -- -D warnings
2021-12-10 10:23:16 +01:00
ci:
if: ${{ success() }}
# all new jobs must be added to this list
2021-12-10 13:28:34 +01:00
needs: [check, fmt] # , clippy
2021-12-10 10:23:16 +01:00
runs-on: ubuntu-latest
steps:
- name: CI succeeded
run: exit 0