Skip to content

Commit

Permalink
init CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-L2L committed Aug 1, 2023
1 parent 4a52f34 commit 90fb897
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/check_and_lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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:
- uses: actions/checkout@v2
- 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: Rust Cache
uses: Swatinem/[email protected]

- name: Rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

- 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

0 comments on commit 90fb897

Please sign in to comment.