pi-frame-server/.forgejo/workflows/cargo.yml

26 lines
676 B
YAML
Raw Normal View History

2024-07-31 05:19:05 +00:00
name: cargo_test_bench
on: push
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2024-08-01 15:14:58 +00:00
- uses: https://github.com/dtolnay/rust-toolchain@stable
2024-08-01 15:16:33 +00:00
- uses: https://github.com/Swatinem/rust-cache@v2
2024-07-31 05:19:05 +00:00
- run: cargo test --all-features
bench:
name: Run Benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
2024-08-01 15:14:58 +00:00
- uses: https://github.com/dtolnay/rust-toolchain@stable
2024-08-01 15:16:33 +00:00
- uses: https://github.com/Swatinem/rust-cache@v2
2024-07-31 05:19:05 +00:00
- run: git checkout HEAD~
- run: cargo bench
- run: git checkout master
- run: cargo bench