Skip to content

Commit

Permalink
chore: ci and benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
ahabhgk committed May 3, 2024
1 parent f7e7691 commit 5544911
Show file tree
Hide file tree
Showing 9 changed files with 778 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Benchmark

on:
push:
branches:
- "main"
pull_request:
workflow_dispatch:

jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: moonrepo/setup-rust@v1
with:
cache-target: release
bins: cargo-codspeed

- name: Build
run: cargo codspeed build

- name: Bench
uses: CodSpeedHQ/action@v2
with:
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on:
push:
branches:
- "main"
pull_request:

jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: moonrepo/setup-rust@v1

- name: Check
run: cargo check --locked

- name: Format
run: cargo fmt --check

- name: Lint
run: cargo clippy -- -D warnings

- name: Test
run: cargo test
Loading

0 comments on commit 5544911

Please sign in to comment.