Skip to content

Commit

Permalink
feat: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cocool97 committed Oct 11, 2024
1 parent d2d9ede commit a46394c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/rust-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Rust - Build

on: [push]

env:
CARGO_TERM_COLOR: always

jobs:
build-release:
name: "build-release"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build project
run: cargo build --release
32 changes: 32 additions & 0 deletions .github/workflows/rust-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Rust - Quality

on: [push]

env:
CARGO_TERM_COLOR: always

jobs:
clippy:
name: "clippy"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup component add clippy
- name: Run clippy
run : cargo clippy

fmt:
name: "fmt"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run formatter
run : cargo fmt

tests:
name: "tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose

0 comments on commit a46394c

Please sign in to comment.