Skip to content

Commit aac3354

Browse files
committed
revert llvm-profdata change
1 parent dadbc62 commit aac3354

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,10 @@ jobs:
469469
pip install -r tests/requirements.txt
470470
pip install pydantic-core --no-index --no-deps --find-links pgo-wheel --force-reinstall
471471
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"'
472473
473474
- 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
475476

476477
- name: build pgo-optimized wheel
477478
uses: PyO3/maturin-action@v1

.github/workflows/codspeed.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
run: pytest tests/benchmarks
6363

6464
- 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'
6666

6767
- name: Compile pydantic-core for benchmarking
6868
# --no-default-features to avoid using mimalloc

0 commit comments

Comments
 (0)