gha: split clippy, less verbose build

This commit is contained in:
Robert Jördens 2020-06-16 17:42:38 +02:00
parent c2883f5f3f
commit 486e0d2ebf

View File

@ -19,14 +19,25 @@ jobs:
with: with:
profile: minimal profile: minimal
toolchain: stable toolchain: stable
target: thumbv7em-none-eabihf
override: true override: true
components: rustfmt, clippy components: rustfmt
- name: cargo fmt --check - name: cargo fmt --check
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: fmt command: fmt
args: --all -- --check args: --all -- --check
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
components: clippy
- name: cargo clippy - name: cargo clippy
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
continue-on-error: true continue-on-error: true
@ -57,23 +68,25 @@ jobs:
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: build command: build
args: --verbose
- name: cargo build release - name: cargo build release
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: build command: build
args: --verbose --release args: --release
- name: cargo build release+semihosting - name: cargo build release+semihosting
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: build command: build
args: --verbose --release --features semihosting args: --release --features semihosting
# Tell bors about it
# https://github.com/rtic-rs/cortex-m-rtic/blob/8a4f9c6b8ae91bebeea0791680f89375a78bffc6/.github/workflows/build.yml#L566-L603
ci-success: ci-success:
name: ci name: ci
if: github.event_name == 'push' && success() if: github.event_name == 'push' && success()
needs: needs:
- style - style
- clippy
- compile - compile
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -84,6 +97,7 @@ jobs:
if: github.event_name == 'push' && !success() if: github.event_name == 'push' && !success()
needs: needs:
- style - style
- clippy
- compile - compile
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: