init CI #1
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
on: [push] | ||
name: Check, Lint, Build | ||
env: | ||
CARGO_TERM_COLOR: always | ||
jobs: | ||
check-lint-build-stable: | ||
name: Check, Lint, Build (stable) | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
# env: | ||
# RUSTFLAGS: -D warnings | ||
steps: | ||
- name: Install latest stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
override: true | ||
target: x86_64-pc-windows-gnu | ||
- name: Checkout PR branch | ||
uses: actions/checkout@v2 | ||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
- name: Missing docs warnings (PR) | ||
id: missing_docs_warnings_pr | ||
run: | | ||
cargo -q clippy --message-format=short -- \ | ||
-Aclippy::all \ | ||
-Wclippy::missing_errors_doc \ | ||
-Wclippy::missing_panics_doc \ | ||
-Wclippy::missing_safety_doc \ | ||
-Wclippy::missing_docs_in_private_items \ | ||
-Wmissing_docs \ | ||
2>&1 \ | ||
| awk -F"[\` ]" \ | ||
'/warning: `.+?` \(lib\) generated [0-9]+ warning[s]?/ { print $3 ": " $7 }' \ | ||
| sort | ||
- name: Checkout PR branch | ||
uses: actions/checkout@v2 | ||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
- name: Missing docs warnings (PR) | ||
id: missing_docs_warnings_pr | ||
Check failure on line 53 in .github/workflows/check_and_lint.yaml GitHub Actions / Check, Lint, BuildInvalid workflow file
|
||
run: | | ||
cargo -q clippy --message-format=short -- \ | ||
-Aclippy::all \ | ||
-Wclippy::missing_errors_doc \ | ||
-Wclippy::missing_panics_doc \ | ||
-Wclippy::missing_safety_doc \ | ||
-Wclippy::missing_docs_in_private_items \ | ||
-Wmissing_docs \ | ||
2>&1 \ | ||
| awk -F"[\` ]" \ | ||
'/warning: `.+?` \(lib\) generated [0-9]+ warning[s]?/ { print $3 ": " $7 }' \ | ||
| sort | ||
- name: Cargo check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: check | ||
- name: Clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --all-targets --all-features | ||
- name: Build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release |