Skip to content

Commit

Permalink
Update wheels.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AIWintermuteAI authored Apr 2, 2024
1 parent e46fd2d commit 7d7bda2
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
timeout-minutes: 120
if: github.repository_owner == 'aarnphm' # Don't run on fork repository
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -89,32 +88,10 @@ jobs:
with:
name: ${{ matrix.python[0] }}-${{ startsWith(matrix.platform[0], 'macosx') && 'macosx' || matrix.platform[0] }}
path: ./wheelhouse/*.whl
release-wheels-sdist:
needs: [build-sdist]
runs-on: ubuntu-latest
if: github.repository_owner == 'aarnphm'
steps:
- uses: actions/download-artifact@v3
- name: Sanity check and setup dist folder
run: |
ls -R
mkdir -p dist
cp -r artifact/* dist/
# MacOS wheels
cp -r cp310-macosx/*.whl dist/
cp -r cp311-macosx/*.whl dist/
cp -r cp38-macosx/*.whl dist/
cp -r cp39-macosx/*.whl dist/
- uses: pypa/[email protected]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
bazel-build-and-release-wheels:
name: Build wheels for python${{ matrix.python-version }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 120
if: github.repository_owner == 'aarnphm' # Don't run on fork repository
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -149,10 +126,3 @@ jobs:
run: |
VERSION=${{ github.ref_name }}
echo "version=${VERSION:1}" >>$GITHUB_OUTPUT
- name: Publish built wheels with bazel
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
bazel run --define=ci=true --stamp --embed_label=${{ steps.get-info.outputs.version }} -- //:whispercpp_wheel.publish --repository pypi --verbose

0 comments on commit 7d7bda2

Please sign in to comment.