1# Generated from xtask::workflows::compare_perf
 2# Rebuild with `cargo xtask workflows`.
 3name: compare_perf
 4on:
 5  workflow_dispatch:
 6    inputs:
 7      head:
 8        description: head
 9        required: true
10        type: string
11      base:
12        description: base
13        required: true
14        type: string
15jobs:
16  run_perf:
17    runs-on: namespace-profile-16x32-ubuntu-2204
18    steps:
19    - name: steps::checkout_repo
20      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
21      with:
22        clean: false
23    - name: compare_perf::run_perf::echo_inputs
24      run: echo ${{ inputs.base }} ${{ inputs.head }}
25      shell: bash -euxo pipefail {0}
26    - name: compare_perf::run_perf::git_checkout
27      run: git fetch origin ${{ inputs.base }} && git checkout ${{ inputs.base }}
28      shell: bash -euxo pipefail {0}
29    - name: compare_perf::run_perf::cargo_perf_test
30      run: cargo perf-test -p gpui -- --json=${{ inputs.base }}
31      shell: bash -euxo pipefail {0}
32    - name: compare_perf::run_perf::git_checkout
33      run: git fetch origin ${{ inputs.head }} && git checkout ${{ inputs.head }}
34      shell: bash -euxo pipefail {0}
35    - name: compare_perf::run_perf::cargo_perf_test
36      run: cargo perf-test -p gpui -- --json=${{ inputs.head }}
37      shell: bash -euxo pipefail {0}
38    - name: compare_perf::run_perf::compare_runs
39      run: cargo perf-compare ${{ inputs.base }} ${{ inputs.head }} --save=results.md
40      shell: bash -euxo pipefail {0}
41    - name: '@actions/upload-artifact results.md'
42      uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
43      with:
44        name: results.md
45        path: results.md