File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -469,9 +469,10 @@ jobs:
469
469
pip install -r tests/requirements.txt
470
470
pip install pydantic-core --no-index --no-deps --find-links pgo-wheel --force-reinstall
471
471
pytest tests/benchmarks
472
+ rustup run stable bash -c 'echo LLVM_PROFDATA=$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/${{ env.RUST_HOST }}/bin/llvm-profdata >> "$GITHUB_ENV"'
472
473
473
474
- name : merge pgo data
474
- run : rustup run stable llvm-profdata merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata
475
+ run : ${{ env.LLVM_PROFDATA }} merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata
475
476
476
477
- name : build pgo-optimized wheel
477
478
uses : PyO3/maturin-action@v1
Original file line number Diff line number Diff line change 62
62
run : pytest tests/benchmarks
63
63
64
64
- name : Prepare merged pgo data
65
- run : rustup run stable llvm-profdata merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata
65
+ run : rustup run stable bash -c '$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/x86_64-unknown-linux-gnu/bin/ llvm-profdata merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata'
66
66
67
67
- name : Compile pydantic-core for benchmarking
68
68
# --no-default-features to avoid using mimalloc
You can’t perform that action at this time.
0 commit comments