Skip to content

Commit

Permalink
add build check
Browse files Browse the repository at this point in the history
  • Loading branch information
Khenziii committed Jan 20, 2024
1 parent a2b873d commit 41a44fd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .cargo-husky/hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ cargo clippy --all-targets --all-features
echo '$ cargo fmt'
cargo fmt --all -- --check

echo '$ cargo build --release'
cargo build --release

echo '$ cargo test'
cargo test
11 changes: 10 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,20 @@ jobs:
- name: Run Clippy
run: cargo clippy --all-targets --all-features
fmt-check:
name: 👀 fmt Check
name: 👀 Fmt Check
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Run Fmt
run: cargo fmt --all -- --check
build-check:
name: 🔨 Build Check
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Try To Build
run: cargo build --release

0 comments on commit 41a44fd

Please sign in to comment.