performance #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: performance | |
on: | |
workflow_dispatch: | |
# TODO(hubcio): uncomment when the workflow is ready | |
# pull_request: | |
# branches: | |
# - master | |
# push: | |
# branches: | |
# - master | |
jobs: | |
run_benchmarks: | |
runs-on: performance | |
env: | |
IGGY_CI_BUILD: true | |
steps: | |
- name: Cache cargo & target directories | |
uses: Swatinem/rust-cache@v2 | |
with: | |
key: "v2" | |
- name: Setup rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Verify working directory | |
run: | | |
pwd | |
ls -la | |
- name: Run predefined benchmarks | |
timeout-minutes: 60 | |
run: ./scripts/performance/run-standard-performance-suite.sh | |
- name: Zip benchmark results | |
run: | |
for dir in performance_results_*; do | |
if [ -d "$dir" ]; then | |
zip -r "${dir}.zip" "$dir" | |
echo "Zipped $dir into ${dir}.zip" | |
else | |
echo "$dir is not a directory, skipping." | |
fi | |
done | |
- name: Upload benchmark results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: performance_results | |
path: performance_results*.zip |