Skip to content

Commit e0dc2ed

Browse files
committed
Update CI workflows
1 parent c00b83f commit e0dc2ed

File tree

4 files changed

+7
-17
lines changed

4 files changed

+7
-17
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: build
33
on: workflow_dispatch
44

55
env:
6-
MATURIN_VERSION: 1.7.8
76
PY_ALL: 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10
87

98
jobs:
@@ -57,7 +56,6 @@ jobs:
5756
echo "JEMALLOC_SYS_WITH_LG_PAGE=16" >> $GITHUB_ENV
5857
- uses: pyo3/maturin-action@v1
5958
with:
60-
maturin-version: v${{ env.MATURIN_VERSION }}
6159
rust-toolchain: stable
6260
command: build
6361
args: --release --out dist --interpreter ${{ matrix.interpreter || env.PY_ALL }}
@@ -95,10 +93,12 @@ jobs:
9593
- uses: dtolnay/rust-toolchain@stable
9694
with:
9795
components: llvm-tools
96+
- name: prepare profiling directory
97+
shell: bash
98+
run: mkdir -p ${{ github.workspace }}/profdata
9899
- name: Build initial wheel
99100
uses: PyO3/maturin-action@v1
100101
with:
101-
maturin-version: v${{ env.MATURIN_VERSION }}
102102
rust-toolchain: stable
103103
command: build
104104
args: --release --out pgo_wheel --interpreter ${{ matrix.interpreter }}
@@ -120,7 +120,6 @@ jobs:
120120
- name: Build PGO wheel
121121
uses: PyO3/maturin-action@v1
122122
with:
123-
maturin-version: v${{ env.MATURIN_VERSION }}
124123
command: build
125124
args: --release --out dist --interpreter ${{ matrix.interpreter }}
126125
manylinux: ${{ matrix.manylinux || 'auto' }}

.github/workflows/lint.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
- master
88

99
env:
10-
MATURIN_VERSION: 1.7.8
1110
PYTHON_VERSION: 3.12
1211

1312
jobs:
@@ -24,7 +23,7 @@ jobs:
2423
run: |
2524
python -m venv .venv
2625
source .venv/bin/activate
27-
pip install maturin==${{ env.MATURIN_VERSION }}
26+
pip install maturin
2827
maturin develop --extras=lint
2928
- name: Lint
3029
run: |

.github/workflows/release.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
- v*.*.*
77

88
env:
9-
MATURIN_VERSION: 1.7.8
109
PY_ALL: 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10
1110

1211
jobs:
@@ -21,7 +20,6 @@ jobs:
2120
python-version: '3.10'
2221
- uses: pyo3/maturin-action@v1
2322
with:
24-
maturin-version: v${{ env.MATURIN_VERSION }}
2523
rust-toolchain: stable
2624
command: sdist
2725
args: --out dist
@@ -81,7 +79,6 @@ jobs:
8179
echo "JEMALLOC_SYS_WITH_LG_PAGE=16" >> $GITHUB_ENV
8280
- uses: pyo3/maturin-action@v1
8381
with:
84-
maturin-version: v${{ env.MATURIN_VERSION }}
8582
rust-toolchain: stable
8683
command: build
8784
args: --release --out dist --interpreter ${{ matrix.interpreter || env.PY_ALL }}
@@ -122,7 +119,6 @@ jobs:
122119
- name: Build initial wheel
123120
uses: PyO3/maturin-action@v1
124121
with:
125-
maturin-version: v${{ env.MATURIN_VERSION }}
126122
rust-toolchain: stable
127123
command: build
128124
args: --release --out pgo_wheel --interpreter ${{ matrix.interpreter }}
@@ -144,7 +140,6 @@ jobs:
144140
- name: Build PGO wheel
145141
uses: PyO3/maturin-action@v1
146142
with:
147-
maturin-version: v${{ env.MATURIN_VERSION }}
148143
command: build
149144
args: --release --out dist --interpreter ${{ matrix.interpreter }}
150145
manylinux: ${{ matrix.manylinux || 'auto' }}

.github/workflows/test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ on:
99
branches:
1010
- master
1111

12-
env:
13-
MATURIN_VERSION: 1.7.8
14-
1512
jobs:
1613
linux:
1714
runs-on: ubuntu-latest
@@ -36,7 +33,7 @@ jobs:
3633
run: |
3734
python -m venv .venv
3835
source .venv/bin/activate
39-
pip install maturin==${{ env.MATURIN_VERSION }}
36+
pip install maturin
4037
maturin develop --extras=test
4138
- name: Test
4239
run: |
@@ -66,7 +63,7 @@ jobs:
6663
run: |
6764
python -m venv .venv
6865
source .venv/bin/activate
69-
pip install maturin==${{ env.MATURIN_VERSION }}
66+
pip install maturin
7067
maturin develop --extras=test
7168
- name: Test
7269
run: |
@@ -96,7 +93,7 @@ jobs:
9693
run: |
9794
python -m venv venv
9895
venv/Scripts/Activate.ps1
99-
pip install maturin==${{ env.MATURIN_VERSION }} pytest
96+
pip install maturin
10097
maturin develop --extras=test
10198
- name: Test
10299
run: |

0 commit comments

Comments
 (0)