Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

ci: add nightly benchmark workflow (#500)

Maximilian Roosa84aee23b2a8
diff --git a/.github/workflows/nightly-benchmark.yaml b/.github/workflows/nightly-benchmark.yaml
new file mode 100644
index 000000000..03515e170
--- /dev/null
+++ b/.github/workflows/nightly-benchmark.yaml
@@ -0,0 +1,35 @@
+name: nightly-benchmark
+
+on:
+ schedule:
+ # Run at 4:17 UTC every day (off-peak minute)
+ - cron: '17 4 * * *'
+ workflow_dispatch:
+
+env:
+ CARGO_TERM_COLOR: always
+
+jobs:
+ benchmark:
+ runs-on: ubuntu-latest
+ steps:
+ - name: πŸ“‚ Checkout code
+ uses: actions/checkout@v6
+
+ - name: πŸ’° Cargo cache
+ uses: Swatinem/rust-cache@v2
+
+ - name: πŸ’° Rust repo cache
+ uses: actions/cache@v4
+ with:
+ path: target/bench-repos
+ key: bench-repos-rust-${{ runner.os }}
+
+ - name: πŸ“Š Run all benchmarks
+ run: cargo bench --bench list
+
+ - name: πŸ“¦ Upload benchmark results
+ uses: actions/upload-artifact@v6
+ with:
+ name: benchmark-results-${{ github.run_id }}
+ path: target/criterion