Skip to content

init CI

init CI #1

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

View workflow run for this annotation

GitHub Actions / Check, Lint, Build

Invalid workflow file

The workflow is not valid. .github/workflows/check_and_lint.yaml (Line: 53, Col: 13): The identifier 'missing_docs_warnings_pr' may not be used more than once within the same scope.
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