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 Aug 27, 2024
1 parent 8208ee6 commit d045a33
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI
on:
push:
branches: [main]
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: arduino/setup-protoc@v3
- 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 --no-deps -- -Dwarnings
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: arduino/setup-protoc@v3
- 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
- uses: arduino/setup-protoc@v3
- run: rustup show
- uses: Swatinem/rust-cache@v2
- name: Test
run: cargo test --all

0 comments on commit d045a33

Please sign in to comment.