Skip to content

Commit d08d269

Browse files
authored
Always build PGO using RUSTFLAGS (#739)
1 parent 5c696e5 commit d08d269

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,10 @@ jobs:
454454
--release
455455
--out pgo-wheel
456456
--interpreter ${{ matrix.maturin-interpreter || matrix.interpreter }}
457-
-- -Cprofile-generate=${{ github.workspace }}/profdata
458457
rust-toolchain: stable
459458
docker-options: -e CI
459+
env:
460+
RUSTFLAGS: "-Cprofile-generate=${{ github.workspace }}/profdata"
460461

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

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

0 commit comments

Comments
 (0)