compare_perf.yml

 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: git checkout ${{ inputs.base }}
27      run: git checkout {ref_name}
28    - name: compare_perf::run_perf::cargo_perf_test
29      run: cargo perf-test -p gpui -- --json=${{ inputs.base }}
30      shell: bash -euxo pipefail {0}
31    - name: git checkout ${{ inputs.head }}
32      run: git checkout {ref_name}
33    - name: compare_perf::run_perf::cargo_perf_test
34      run: cargo perf-test -p gpui -- --json=${{ inputs.head }}
35      shell: bash -euxo pipefail {0}
36    - name: compare_perf::run_perf::compare_runs
37      run: cargo perf-compare ${{ inputs.base }} ${{ inputs.head }} --save=results.md
38      shell: bash -euxo pipefail {0}
39    - name: '@actions/upload-artifact results.md'
40      uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
41      with:
42        name: results.md
43        path: results.md