chore(deps): bump the rust-patch group across 1 directory with 11 updates #180
Workflow file for this run
This file contains hidden or 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: Benchmarks | |
| on: | |
| schedule: | |
| - cron: '0 3 * * 1' # Weekly Monday 3am UTC | |
| workflow_dispatch: | |
| pull_request: | |
| types: [labeled] | |
| jobs: | |
| benchmarks: | |
| if: > | |
| github.event_name == 'schedule' || | |
| github.event_name == 'workflow_dispatch' || | |
| (github.event_name == 'pull_request' && github.event.label.name == 'benchmark') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxxf86vm-dev libasound2-dev | |
| - name: Install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: goud_engine | |
| - name: Run benchmarks | |
| working-directory: goud_engine | |
| run: cargo bench --bench ecs_benchmarks --bench asset_benchmarks --bench sprite_batch_benchmarks | |
| - name: Upload benchmark reports | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: criterion-reports | |
| path: goud_engine/target/criterion/ | |
| retention-days: 7 |