Skip to content

Commit 3c84d6f

Browse files
authored
add ci cd (#43)
1 parent bf68f91 commit 3c84d6f

File tree

4 files changed

+362
-33
lines changed

4 files changed

+362
-33
lines changed

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# -------------------------------------------------------------------
2+
# ------------------------------- WARNING ---------------------------
3+
# -------------------------------------------------------------------
4+
#
5+
# This file was automatically generated by gh-workflows using the
6+
# gh-workflow-gen bin. You should add and commit this file to your
7+
# git repository. **DO NOT EDIT THIS FILE BY HAND!** Any manual changes
8+
# will be lost if the file is regenerated.
9+
#
10+
# To make modifications, update your `build.rs` configuration to adjust
11+
# the workflow description as needed, then regenerate this file to apply
12+
# those changes.
13+
#
14+
# -------------------------------------------------------------------
15+
# ----------------------------- END WARNING -------------------------
16+
# -------------------------------------------------------------------
17+
18+
name: Build and Test
19+
env:
20+
RUSTFLAGS: -Dwarnings
21+
on:
22+
pull_request:
23+
types:
24+
- opened
25+
- synchronize
26+
- reopened
27+
branches:
28+
- main
29+
push:
30+
branches:
31+
- main
32+
jobs:
33+
build:
34+
name: Build and Test
35+
runs-on: ubuntu-latest
36+
permissions:
37+
contents: read
38+
steps:
39+
- name: Checkout Code
40+
uses: actions/checkout@v4
41+
- name: Setup Rust Toolchain
42+
uses: actions-rust-lang/setup-rust-toolchain@v1
43+
with:
44+
toolchain: stable, nightly
45+
components: clippy, rustfmt
46+
- name: Cargo Test
47+
run: cargo test --all-features --workspace
48+
- name: Cargo Fmt
49+
run: cargo +nightly fmt --check
50+
- name: Cargo Clippy
51+
run: cargo +nightly clippy --all-features --workspace -- -D warnings

0 commit comments

Comments
 (0)