Skip to content

Commit

Permalink
👷 Add GitHub Actions support
Browse files Browse the repository at this point in the history
  • Loading branch information
ShellWen committed Oct 6, 2023
1 parent 7e1dabe commit 21d3f18
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on: [ push, pull_request ]

name: CI

jobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup update stable
- name: Build
run: cargo build --release
19 changes: 19 additions & 0 deletions .github/workflows/clippy_check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on: [ push, pull_request ]

name: Clippy check

jobs:
clippy_check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v1
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
17 changes: 17 additions & 0 deletions .github/workflows/rustfmt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on: [ push, pull_request ]

name: Rustfmt

jobs:
rustfmt:
name: rustfmt
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check

0 comments on commit 21d3f18

Please sign in to comment.