Skip to content

Commit

Permalink
Always build PGO using RUSTFLAGS (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
messense authored Jul 4, 2023
1 parent 5c696e5 commit d08d269
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,10 @@ jobs:
--release
--out pgo-wheel
--interpreter ${{ matrix.maturin-interpreter || matrix.interpreter }}
-- -Cprofile-generate=${{ github.workspace }}/profdata
rust-toolchain: stable
docker-options: -e CI
env:
RUSTFLAGS: "-Cprofile-generate=${{ github.workspace }}/profdata"

- name: detect rust host
run: echo RUST_HOST=$(rustc -Vv | grep host | cut -d ' ' -f 2) >> "$GITHUB_ENV"
Expand All @@ -482,9 +483,10 @@ jobs:
--release
--out dist
--interpreter ${{ matrix.maturin-interpreter || matrix.interpreter }}
-- -Cprofile-use=${{ github.workspace }}/merged.profdata
rust-toolchain: stable
docker-options: -e CI
env:
RUSTFLAGS: "-Cprofile-use=${{ github.workspace }}/merged.profdata"

- run: ${{ matrix.ls || 'ls -lh' }} dist/

Expand Down

0 comments on commit d08d269

Please sign in to comment.