Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
zealchen committed May 6, 2024
2 parents edd1846 + 95af85d commit 464054c
Show file tree
Hide file tree
Showing 9 changed files with 1,107 additions and 9 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI

on:
workflow_dispatch:
push:
branches:
- main
- dev
paths:
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'
pull_request:
paths:
- 'src/**'
- 'Cargo.toml'
- 'Cargo.lock'

# Common environment variables
env:
RUSTFLAGS: "-C debuginfo=1"
CARGO_TERM_COLOR: always
RUST_BACKTRACE: "1"

jobs:
style-check:
name: style-check
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- run:
sudo apt install -y protobuf-compiler
- name: Cache Crates
uses: actions/cache@v3
with:
path: |
./target
~/.cargo
key: debug-${{ runner.os }}-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
debug-${{ runner.os }}-${{ hashFiles('rust-toolchain.toml') }}-
debug-${{ runner.os }}-
- name: Run Style Check
run: |
make ci
- name: Run
run: |
make run
- name: Check git status
run: |
git diff --exit-code
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/
Loading

0 comments on commit 464054c

Please sign in to comment.