wip: add ci
This commit is contained in:
parent
3302928cb7
commit
e7cf8e089a
23
.forgejo/workflows/cargo.yml
Normal file
23
.forgejo/workflows/cargo.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: cargo_test_bench
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Run Tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- run: cargo test --all-features
|
||||
bench:
|
||||
name: Run Benchmarks
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- run: git checkout HEAD~
|
||||
- run: cargo bench
|
||||
- run: git checkout master
|
||||
- run: cargo bench
|
Loading…
Reference in a new issue