Skip to content

Commit

Permalink
ci: Add github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
conr2d committed Jan 8, 2025
1 parent f7d3e50 commit cee372a
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI
on:
push:
branches: [main]
paths:
- '**.rs'
- '**.toml'
- '**.yml'
pull_request:
paths:
- '**.rs'
- '**.toml'
- '**.yml'

env:
CARGO_TERM_COLOR: always

jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: rustup show
- uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check --all-targets
- name: Format
run: cargo fmt --all --check
- name: Lint
run: cargo clippy -- -Dwarnings
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: rustup show
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build -v
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: rustup show
- uses: Swatinem/rust-cache@v2
- name: Test
run: cargo test --all

0 comments on commit cee372a

Please sign in to comment.