Feat/submodule improvements #193
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: Benchmark Targets | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: benchmark-targets-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| compile: | |
| name: Benchmark Target Compile (${{ matrix.name }}) | |
| runs-on: ${{ matrix.runs_on }} | |
| timeout-minutes: 90 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: linux / ubuntu-22.04 | |
| runs_on: ubuntu-22.04 | |
| - name: macos / apple-silicon | |
| runs_on: macos-latest | |
| - name: windows / x86_64 | |
| runs_on: windows-latest | |
| - name: windows / arm64 | |
| runs_on: windows-11-arm | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Linux UI native dependencies | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| pkg-config \ | |
| libxcb1-dev \ | |
| libxkbcommon-dev \ | |
| libxkbcommon-x11-dev | |
| - name: Preflight Linux UI link dependencies | |
| if: runner.os == 'Linux' | |
| run: | | |
| missing=0 | |
| for dep in xcb xkbcommon xkbcommon-x11; do | |
| if ! pkg-config --exists "$dep"; then | |
| echo "::error title=Missing Linux UI dependency::pkg-config could not find '$dep'. Install libxcb1-dev, libxkbcommon-dev, and libxkbcommon-x11-dev." | |
| missing=1 | |
| fi | |
| done | |
| if [ "$missing" -ne 0 ]; then | |
| echo "Benchmark target compile job is missing required native UI link dependencies." | |
| exit 1 | |
| fi | |
| pkg-config --modversion xcb xkbcommon xkbcommon-x11 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Rust artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Show host target | |
| run: rustc -vV | |
| - name: Compile Criterion performance bench | |
| run: cargo bench -p gitcomet-ui-gpui --features benchmarks --bench performance --no-run --locked | |
| - name: Compile UI performance support binaries | |
| run: cargo build -p gitcomet-ui-gpui --features benchmarks --bin perf_budget_report --bin perf_idle_resource --locked | |
| - name: Compile app launch performance harness | |
| run: cargo build -p gitcomet --bin perf-app-launch --locked |