Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdeafbeef committed Nov 7, 2024
1 parent 5455af4 commit 0bcff05
Show file tree
Hide file tree
Showing 11 changed files with 4,196 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/CI.yaml
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
25 changes: 25 additions & 0 deletions .gitignore
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/
Loading

0 comments on commit 0bcff05

Please sign in to comment.