Skip to content

Commit

Permalink
Review build config
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Dec 12, 2024
1 parent e0dc2ed commit 27001c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_pgo_deps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ httpx
pytest
pytest-asyncio
sniffio
websockets
websockets==11.0.3
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools
- name: prepare profiling directory
shell: bash
run: mkdir -p ${{ github.workspace }}/profdata
- name: Build initial wheel
uses: PyO3/maturin-action@v1
with:
Expand All @@ -132,7 +135,7 @@ jobs:
- name: Generate PGO data
shell: bash
run: |
pip install .[test]
pip install -r .github/workflows/_pgo_deps.txt
pip install granian --no-index --no-deps --find-links pgo_wheel --force-reinstall
PGO_RUN=y pytest tests
- name: merge PGO data
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ mimalloc = { version = "0.1.43", default-features = false, features = ["local_dy
tikv-jemallocator = { version = "0.6.0", default-features = false, features = ["disable_initial_exec_tls"] }

[build-dependencies]
pyo3-build-config = { version = "=0.23", features = ["resolve-config"] }
pyo3-build-config = "=0.23"

[profile.release]
codegen-units = 1
Expand Down

0 comments on commit 27001c4

Please sign in to comment.