Skip to content

Commit

Permalink
Update build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Nov 10, 2023
1 parent 36c1ee6 commit ac16858
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,15 @@ jobs:
manylinux: ${{ matrix.manylinux || 'auto' }}
env:
RUSTFLAGS: "-Cprofile-generate=${{ github.workspace }}/profdata"
- name: Install project
uses: PyO3/maturin-action@v1
with:
maturin-version: v${{ env.MATURIN_VERSION }}
rust-toolchain: stable
command: develop
args: --extras test --interpreter ${{ matrix.interpreter }}
- name: Generate PGO data
run: |
pip install pytest pytest-asyncio httpx websockets
pip install granian --no-index --no-deps --find-links pgo_wheel --force-reinstall
PGO_RUN=y pytest tests
- name: merge PGO data
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,15 @@ jobs:
manylinux: ${{ matrix.manylinux || 'auto' }}
env:
RUSTFLAGS: "-Cprofile-generate=${{ github.workspace }}/profdata"
- name: Install project
uses: PyO3/maturin-action@v1
with:
maturin-version: v${{ env.MATURIN_VERSION }}
rust-toolchain: stable
command: develop
args: --extras test --interpreter ${{ matrix.interpreter }}
- name: Generate PGO data
run: |
pip install pytest pytest-asyncio httpx websockets
pip install granian --no-index --no-deps --find-links pgo_wheel --force-reinstall
PGO_RUN=y pytest tests
- name: merge PGO data
Expand Down

0 comments on commit ac16858

Please sign in to comment.