Skip to content

Commit 56d79a6

Browse files
committed
chore: initialize
0 parents  commit 56d79a6

File tree

11 files changed

+1020
-0
lines changed

11 files changed

+1020
-0
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ windows-latest, macos-latest, ubuntu-latest ]
19+
rust: [ "1.75.0", "stable", "nightly" ]
20+
env:
21+
RUST_BACKTRACE: 1
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: Swatinem/rust-cache@v2
25+
- uses: dtolnay/rust-toolchain@master
26+
with:
27+
toolchain: ${{ matrix.rust }}
28+
components: rustfmt, clippy
29+
30+
- name: Check format
31+
if: ${{ matrix.rust == 'nightly' }}
32+
run: cargo +${{ matrix.rust }} fmt --all -- --check
33+
34+
- name: Check clippy
35+
if: ${{ matrix.rust == 'nightly' }}
36+
run: cargo +${{ matrix.rust }} clippy --all-targets --all-features -- --deny warnings
37+
38+
- name: Build
39+
run: cargo +${{ matrix.rust }} build --workspace --all-targets
40+
41+
- name: Install Protoc
42+
uses: arduino/setup-protoc@v3
43+
44+
- name: Check examples
45+
run: |
46+
cd example
47+
cargo +${{ matrix.rust }} check --bin client
48+
cargo +${{ matrix.rust }} check --bin server

.github/workflows/typos.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Typos Check
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
11+
cancel-in-progress: true
12+
13+
env:
14+
RUST_BACKTRACE: 1
15+
16+
jobs:
17+
typos-check:
18+
name: typos check
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 10
21+
env:
22+
FORCE_COLOR: 1
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: crate-ci/typos@master

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/target
2+
/wip
3+
4+
.editorconfig
5+
.idea

0 commit comments

Comments
 (0)