Skip to content

Commit

Permalink
Adds CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yorik committed Sep 14, 2023
1 parent 8a9c42d commit 98fec88
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Rust CI"
on:
pull_request:

jobs:
build:
name: cargo build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly-2023-04-17
- run: cargo build --verbose --all-features
- run: RUSTFLAGS="-Awarnings" cargo test --verbose --all-features

formatting:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1

0 comments on commit 98fec88

Please sign in to comment.