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: steps::setup_cargo_config
24      run: |
25        mkdir -p ./../.cargo
26        cp ./.cargo/ci-config.toml ./../.cargo/config.toml
27      shell: bash -euxo pipefail {0}
28    - name: steps::setup_linux
29      run: ./script/linux
30      shell: bash -euxo pipefail {0}
31    - name: steps::install_mold
32      run: ./script/install-mold
33      shell: bash -euxo pipefail {0}
34    - name: compare_perf::run_perf::git_checkout
35      run: git fetch origin ${{ inputs.base }} && git checkout ${{ inputs.base }}
36      shell: bash -euxo pipefail {0}
37    - name: compare_perf::run_perf::cargo_perf_test
38      run: cargo perf-test -p gpui -- --json=${{ inputs.base }}
39      shell: bash -euxo pipefail {0}
40    - name: compare_perf::run_perf::git_checkout
41      run: git fetch origin ${{ inputs.head }} && git checkout ${{ inputs.head }}
42      shell: bash -euxo pipefail {0}
43    - name: compare_perf::run_perf::cargo_perf_test
44      run: cargo perf-test -p gpui -- --json=${{ inputs.head }}
45      shell: bash -euxo pipefail {0}
46    - name: compare_perf::run_perf::compare_runs
47      run: cargo perf-compare ${{ inputs.base }} ${{ inputs.head }} --save=results.md
48      shell: bash -euxo pipefail {0}
49    - name: '@actions/upload-artifact results.md'
50      uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
51      with:
52        name: results.md
53        path: results.md
54    - name: steps::cleanup_cargo_config
55      if: always()
56      run: |
57        rm -rf ./../.cargo
58      shell: bash -euxo pipefail {0}