Skip to content

Commit

Permalink
add: github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
daystram committed Jul 21, 2024
1 parent 8d8681b commit 34b1481
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:

env:
CARGO_TERM_COLOR: always

jobs:
dependencies:
name: Dependencies
runs-on: Ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Cargo fetch
run: cargo fetch --verbose
build:
name: Build
runs-on: Ubuntu-24.04
needs: [dependencies]
steps:
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Cargo build
run: cargo build --verbose
lint:
name: Lint
runs-on: Ubuntu-24.04
needs: [dependencies]
steps:
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Cargo fmt
run: cargo fmt --all --check --verbose
- name: Cargo clippy
run: cargo clippy --verbose

0 comments on commit 34b1481

Please sign in to comment.