Skip to content

day 7 - part 2

day 7 - part 2 #17

Workflow file for this run

name: Bench
on:
push:
branches:
- main
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Cache Cargo Registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache Cargo Build
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Build Project
run: cargo build --workspace --release
- name: Run Tests
run: cargo test --workspace --all-features -- --nocapture
- name: Run Benchmarks and Save Output
run: |
sh update-bench.sh
- name: Upload Benchmarks Output
uses: actions/upload-artifact@v4
with:
name: benchmarks_output
path: benchmarks/output.txt