forked from aarnphm/whispercpp
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e46fd2d
commit 7d7bda2
Showing
1 changed file
with
0 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|
@@ -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 |