Skip to content

Commit

Permalink
Review maturin version, github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed May 1, 2024
1 parent 88fb0ed commit 8b5e123
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: build
on: workflow_dispatch

env:
MATURIN_VERSION: 1.3.2
MATURIN_VERSION: 1.5.1
PY_ALL: 3.8 3.9 3.10 3.11 3.12 pypy3.8 pypy3.9 pypy3.10

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- master

env:
MATURIN_VERSION: 1.3.2
MATURIN_VERSION: 1.5.1
PYTHON_VERSION: 3.12

jobs:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
# types: [published]

env:
MATURIN_VERSION: 1.3.2
MATURIN_VERSION: 1.5.1
PY_ALL: 3.8 3.9 3.10 3.11 3.12 pypy3.8 pypy3.9 pypy3.10

jobs:
Expand Down Expand Up @@ -126,9 +126,6 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools
- run: |
RUST_HOST=$(rustc -Vv | grep host | cut -d ' ' -f 2) rustup run stable bash -c 'echo LLVM_PROFDATA=$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/$RUST_HOST/bin/llvm-profdata >> "$GITHUB_ENV"'
shell: bash
- name: Build initial wheel
uses: PyO3/maturin-action@v1
with:
Expand All @@ -139,6 +136,9 @@ jobs:
manylinux: ${{ matrix.manylinux || 'auto' }}
env:
RUSTFLAGS: "-Cprofile-generate=${{ github.workspace }}/profdata"
- run: |
RUST_HOST=$(rustc -Vv | grep host | cut -d ' ' -f 2) rustup run stable bash -c 'echo LLVM_PROFDATA=$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/$RUST_HOST/bin/llvm-profdata >> "$GITHUB_ENV"'
shell: bash
- name: Generate PGO data
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- master

env:
MATURIN_VERSION: 1.3.2
MATURIN_VERSION: 1.5.1

jobs:
linux:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Source = 'https://github.com/emmett-framework/granian'
granian = 'granian:cli.entrypoint'

[build-system]
requires = ['maturin>=1.1.0,<1.5.0']
requires = ['maturin>=1.1.0,<2']
build-backend = 'maturin'

[tool.maturin]
Expand Down

0 comments on commit 8b5e123

Please sign in to comment.