@@ -2,6 +2,12 @@ name: Build Wheels
22
33on :
44 workflow_call :
5+ inputs :
6+ auto_bump :
7+ description : ' Bump version automatically'
8+ type : boolean
9+ required : false
10+ default : false
511
612jobs :
713 linux :
3541 sudo apt update
3642 sudo apt install pkg-config gcc-aarch64-linux-gnu g++-aarch64-linux-gnu -qy
3743
44+ - name : Bump Cargo version
45+ if : ${{ inputs.auto_bump }}
46+ uses : ./.github/actions/bump_version
47+
3848 - uses : dtolnay/rust-toolchain@master
3949 with :
4050 toolchain : stable
@@ -95,6 +105,10 @@ jobs:
95105 run : |
96106 choco install nasm
97107
108+ - name : Bump Cargo version
109+ if : ${{ inputs.auto_bump }}
110+ uses : ./.github/actions/bump_version
111+
98112 - uses : dtolnay/rust-toolchain@master
99113 with :
100114 toolchain : stable
@@ -158,6 +172,10 @@ jobs:
158172 - name : Set macOS version
159173 run : echo "MACOSX_DEPLOYMENT_TARGET=${{ matrix.platform.macos_version }}" >> $GITHUB_ENV
160174
175+ - name : Bump Cargo version
176+ if : ${{ inputs.auto_bump }}
177+ uses : ./.github/actions/bump_version
178+
161179 - uses : dtolnay/rust-toolchain@master
162180 with :
163181 toolchain : stable
@@ -192,15 +210,22 @@ jobs:
192210 runs-on : ubuntu-latest
193211 steps :
194212 - uses : actions/checkout@v3
213+
195214 - name : Set up Python
196215 uses : actions/setup-python@v4
197216 with :
198217 python-version : ' 3.10'
218+
219+ - name : Bump Cargo version
220+ if : ${{ inputs.auto_bump }}
221+ uses : ./.github/actions/bump_version
222+
199223 - name : Build sdist with Maturin
200224 uses : PyO3/maturin-action@v1
201225 with :
202226 command : sdist
203227 args : --out dist
228+
204229 - uses : actions/upload-artifact@v4
205230 with :
206231 path : dist/*.tar.gz
0 commit comments