Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions .github/workflows/upload-build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set release info
id: release-info
run: |
echo "date=$(date -u +'%Y%m%d-%H%M')" >> "$GITHUB_OUTPUT"
echo "commit=$(git -C whisper.cpp rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"

- name: Check for existing release with same commit
id: check-release
run: |
COMMIT=${{ steps.release-info.outputs.commit }}
if gh release list --limit 100 --json tagName --jq ".[] | select(.tagName | contains(\"${COMMIT}\"))"; then
TAG="preview-nativelibs-${{ steps.release-info.outputs.commit }}"
echo "Checking if release with tag $TAG exists..."
if gh release view "$TAG" --json tagName &>/dev/null; then
echo "release_exists=true" >> "$GITHUB_OUTPUT"
else
echo "release_exists=false" >> "$GITHUB_OUTPUT"
Expand All @@ -35,20 +42,17 @@ jobs:
- name: Zip Artifacts
if: steps.check-release.outputs.release_exists != 'true'
run: |
zip -r native-runtimes.zip runtime-artifacts

- name: Set release info
id: release-info
run: |
echo "date=$(date -u +'%Y%m%d-%H%M')" >> "$GITHUB_OUTPUT"
echo "commit=$(git -C whisper.cpp rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
zip -r native-runtimes.zip runtime-artifacts

- name: Create preview release
if: steps.check-release.outputs.release_exists != 'true'
uses: ncipollo/release-action@90dc22b77f7e5e8d3a3a92924b18415dca53f445
with:
tag: preview-${{ steps.release-info.outputs.date }}-${{ steps.release-info.outputs.commit }}
name: Preview ${{ steps.release-info.outputs.date }} (${{ steps.release-info.outputs.commit }})
tag: preview-nativelibs-${{ steps.release-info.outputs.commit }}
name: Preview NativeLibs ${{ steps.release-info.outputs.date }} (${{ steps.release-info.outputs.commit }})
artifacts: native-runtimes.zip
prerelease: true
body: |
These are the native libraries built from [whisper.cpp](https://github.com/ggml-org/whisper.cpp) at commit `${{ steps.release-info.outputs.commit }}`.

This release was automatically generated on `${{ steps.release-info.outputs.date }}`.
2 changes: 1 addition & 1 deletion Whisper.net/Internals/Native/Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ internal struct WhisperFullParams
public byte SuppressBlank;

// suppress non-speech tokens (e.g. `,`, `.`, etc.)
public byte SupressNonSpeechTokens;
public byte SuppressNonSpeechTokens;

// common decoding parameters:
// ref: https://github.com/openai/whisper/blob/f82bc59f5ea234d4b97fb2860842ed38519f7e65/whisper/decoding.py#L89
Expand Down
Loading