Skip to content

fix: make the compiler and clippy happy and remove warnings #274

fix: make the compiler and clippy happy and remove warnings

fix: make the compiler and clippy happy and remove warnings #274

Workflow file for this run

on: [push, pull_request]
name: Continuous integration
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ env.TARGET }}
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: check
use-cross: true
args: --target ${{ env.TARGET }}
- uses: actions-rs/cargo@v1
with:
command: check
use-cross: true
args: --target ${{ env.TARGET }} --no-default-features
- uses: actions-rs/cargo@v1
with:
command: check
use-cross: true
args: --target ${{ env.TARGET }} --no-default-features --features input
- uses: actions-rs/cargo@v1
with:
command: check
use-cross: true
args: --target ${{ env.TARGET }} --no-default-features --features framebuffer
- uses: actions-rs/cargo@v1
with:
command: check
use-cross: true
args: --target ${{ env.TARGET }} --no-default-features --features framebuffer-text-drawing,input
- uses: actions-rs/cargo@v1
with:
command: check
use-cross: true
args: --target ${{ env.TARGET }} --no-default-features --features appctx
test:
name: Test Suite on gnueabihf
runs-on: ubuntu-latest
env:
TARGET: armv7-unknown-linux-gnueabihf
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ env.TARGET }}
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: test
use-cross: true
args: --target ${{ env.TARGET }}
test-local:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: test
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ env.TARGET }}
override: true
components: 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: ${{ env.TARGET }}
override: true
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
use-cross: true
args: --target ${{ env.TARGET }} -- -D warnings
env:
TARGET: armv7-unknown-linux-musleabihf