-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5455af4
commit 683f8e9
Showing
11 changed files
with
4,198 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
merge_group: | ||
pull_request: | ||
branches: | ||
- "**" | ||
paths: | ||
- "Cargo.toml" | ||
- "Cargo.lock" | ||
- "**.rs" | ||
- ".github**" | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} # cancels previous runs on the same PR / commit group | ||
cancel-in-progress: true | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
rustfmt: | ||
name: Rustfmt | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
components: rustfmt | ||
- name: Check formatting | ||
run: cargo +nightly fmt -- --check | ||
|
||
clippy: | ||
name: Clippy | ||
needs: rustfmt | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Clang | ||
run: sudo apt-get update && sudo apt-get install -y clang | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- name: Clippy check | ||
run: cargo clippy --all-targets --all-features -- -D warnings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/debug/ | ||
/target/ | ||
**/*.rs.bk | ||
*.pdb | ||
|
||
.idea/ | ||
.vscode/ | ||
.fleet/ | ||
.venv | ||
|
||
perf.data* | ||
.scratch | ||
|
||
.DS_Store | ||
|
||
/zerostate.json | ||
/zerostate.boc | ||
|
||
config.json | ||
global-config.json | ||
keys.json | ||
logger.json | ||
|
||
/db/ | ||
/.temp/ |
Oops, something went wrong.