Add basic benchmarks and CI

This commit is contained in:
Lol3rrr
2024-10-17 17:43:11 +02:00
parent 195d2fbc15
commit 52d58efa23
8 changed files with 209 additions and 14 deletions

22
.github/workflows/benchmark.yaml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: Benchmark
on:
push:
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: 'true'
submodules: 'recursive'
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Run Tests
run: cargo bench

42
.github/workflows/test.yaml vendored Normal file
View File

@@ -0,0 +1,42 @@
name: Testing/Linting
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: 'true'
submodules: 'recursive'
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Run Tests
run: cargo test
lint:
runs-on: ubuntu-latest
strategy:
matrix:
crate: [analysis, backend]
steps:
- uses: actions/checkout@v4
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Run Clippy
run: cargo clippy
- name: Run formatting
run: cargo fmt --check