cargo fmt
and cargo clippy
on Github Actions
#81
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: 'ubuntu-latest' | |
name: 'Linux' | |
- os: 'macos-latest' | |
name: 'macOS' | |
- os: 'windows-latest' | |
name: 'Windows' | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.name }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: 'recursive' | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
target: powerpc-unknown-linux-gnu | |
override: true | |
- name: Install cargo fmt and cargo clippy | |
run: rustup component add rustfmt clippy | |
- name: Check format | |
run: cargo fmt -- --check | |
- name: Run clippy | |
run: cargo clippy -- -D warnings | |
- name: Build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release --all-features --verbose | |
- name: Test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test |