Skip to content

Commit

Permalink
Add github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriopass committed Nov 30, 2024
1 parent 2727315 commit 4797940
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/rust-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: rust-build

on:
push:
branches:
- '*'
pull_request:
branches:
- master

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust
uses: hecrj/setup-rust-action@v2
with:
rust-version: 'stable'

- name: Rustfmt
run: cargo fmt --verbose --all --check

- name: Clippy
run: cargo clippy --verbose --tests --examples

- name: Tests
run: cargo test --verbose

0 comments on commit 4797940

Please sign in to comment.