Skip to content

Commit

Permalink
added files (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah authored Jun 26, 2024
1 parent e4467b6 commit 8ef846e
Show file tree
Hide file tree
Showing 18 changed files with 1,451 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/proto-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Protobuf CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
tags:
- "**"

jobs:
fmt:
name: Format
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4.1.7
- uses: bufbuild/buf-setup-action@35c243d7f2a909b1d4e40399b348a7fdab27d78d # pin@v1.34.0
with:
version: "1.34.0"
github_token: ${{ github.token }}

- name: Check Protobuf Format
run: buf format -d --exit-code


58 changes: 58 additions & 0 deletions .github/workflows/rust-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Rust CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
tags:
- "**"

jobs:
fmt:
name: Format
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4.1.7

- name: Check Rust formatting
run: cargo fmt --check --all

clippy:
name: Lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4.1.7
- name: Cache cargo dependencies
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # pin@v2.7.3
- name: Install Protoc
uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # pin@v3.0.0
with:
version: "24.1"

- name: Clippy lints
run: cargo clippy --all --all-features --all-targets --no-deps -- -D warnings

doc:
name: Docs
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4.1.7
- name: Cache cargo dependencies
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # pin@v2.7.3
- name: Install Protoc
uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # pin@v3.0.0
with:
version: "24.1"

- name: Cargo Doc
run: cargo doc --all --all-features --no-deps --document-private-items

cargo-deny:
name: Licensing
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3

- name: Check licenses and security advisories
uses: EmbarkStudios/cargo-deny-action@3f4a782664881cf5725d0ffd23969fcce89fd868 # pin@v1.6.3
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Rust stuff
/target

# Nix stuff
/.direnv
/result
.envrc

.DS_Store

# IDE stuff
.idea/

# Allow developers to use python pre-commit locally
/.pre-commit-config.yaml
Loading

0 comments on commit 8ef846e

Please sign in to comment.