From 27001c401207d54027693ccfe1f7d49563c42f3e Mon Sep 17 00:00:00 2001 From: Giovanni Barillari Date: Thu, 12 Dec 2024 16:16:29 +0100 Subject: [PATCH] Review build config --- .github/workflows/_pgo_deps.txt | 2 +- .github/workflows/release.yml | 5 ++++- Cargo.toml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_pgo_deps.txt b/.github/workflows/_pgo_deps.txt index 012c4f9..1105d15 100644 --- a/.github/workflows/_pgo_deps.txt +++ b/.github/workflows/_pgo_deps.txt @@ -2,4 +2,4 @@ httpx pytest pytest-asyncio sniffio -websockets +websockets==11.0.3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 557b097..3de10c7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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 diff --git a/Cargo.toml b/Cargo.toml index b973e3b..c0dfbb0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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