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
6 changes: 3 additions & 3 deletions .github/workflows/android-native-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ on:
BuildConfig:
required: true
type: string
default: 'Release'
default: "Release"

jobs:
native-build:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: true

Expand All @@ -29,7 +29,7 @@ jobs:
run: make android BUILD_TYPE=${{ inputs.BuildConfig }}

- name: Upload Android Build Artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: android-build
path: "runtimes/Whisper.net.Run*/android-*/*"
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/codeql-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ on:
workflow_call:

jobs:
codeql-github:
codeql-github:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand All @@ -21,7 +21,6 @@ jobs:
languages: actions
build-mode: none


- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/collect-gpt-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Collect GitHub issue and release data
shell: pwsh
Expand All @@ -38,10 +38,10 @@ jobs:
Out-File -FilePath "issues.md" -Encoding utf8 -InputObject ""
foreach ($issue in $issues) {
Add-Content -Path "issues.md" -Value "## #$($issue.number) - $($issue.title)`n$($issue.body)`n"

$commentsUrl = $issue.comments_url
$comments = Invoke-RestMethod -Uri $commentsUrl -Headers $headers

if ($comments.Count -gt 0) {
Add-Content -Path "issues.md" -Value "### Comments:`n"
foreach ($comment in $comments) {
Expand Down Expand Up @@ -90,12 +90,12 @@ jobs:
Add-Content -Path "code_snippets.md" -Value $content
Add-Content -Path "code_snippets.md" -Value "``````n"
} else {
Write-Error "File not found: $fullPath" exit 1 # Fail the script if a file is not found
Write-Error "File not found: $fullPath" exit 1 # Fail the script if a file is not found
}
}

- name: Upload data artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: data
path: "*.md"
34 changes: 17 additions & 17 deletions .github/workflows/dotnet-maui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ jobs:
USE_WHISPER_MAUI_TESTS: "TRUE"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x

- uses: maxim-lobanov/setup-xcode@7f352e61cbe8130c957c3bc898c4fb025784ea1e
- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
with:
xcode-version: '26.2'
xcode-version: "26.2"

- name: Download Artifacts
id: download-artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
merge-multiple: true
path: runtimes
Expand All @@ -59,7 +59,7 @@ jobs:
run: dotnet build ./tests/Whisper.net.Tests.Maui/Whisper.net.Tests.Maui.csproj -c Debug -f net10.0-android -p:EmbedAssembliesIntoApk=true

- name: Upload apk and ios app
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: maui-build-artifacts
path: |
Expand All @@ -74,10 +74,10 @@ jobs:
USE_WHISPER_MAUI: "TRUE"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
Expand All @@ -86,7 +86,7 @@ jobs:

- name: Download Artifacts
id: download-artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: maui-build-artifacts
path: maui-build-artifacts
Expand All @@ -101,15 +101,15 @@ jobs:
run: dotnet tool install Microsoft.DotNet.XHarness.CLI --global --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json --version "10.0.0-*"

- name: run android tests
uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d
uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b
with:
api-level: 29
arch: x86_64
script: xharness android test --app=./maui-build-artifacts/net10.0-android/com.companyname.whisper.net.tests.maui-Signed.apk -p com.companyname.whisper.net.tests.maui -i com.companyname.whisper.net.tests.maui.AndroidMauiTestInstrumentation -o=./test-results/android

- name: Upload Maui Android xharness test results
if: ${{ always() }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: xharness-android-test-results
path: |
Expand All @@ -123,23 +123,23 @@ jobs:
USE_WHISPER_MAUI: "TRUE"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x

- uses: maxim-lobanov/setup-xcode@7f352e61cbe8130c957c3bc898c4fb025784ea1e
- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
with:
xcode-version: '26.2'
xcode-version: "26.2"

- name: Download Artifacts
id: download-artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: maui-build-artifacts
path: maui-build-artifacts
Expand All @@ -154,7 +154,7 @@ jobs:
run: xharness apple test --app=./maui-build-artifacts/net10.0-ios/iossimulator-arm64/Whisper.net.Tests.Maui.app --output-directory=./test-results/ios --target=ios-simulator-64 --device="iPhone 17" --timeout "00:30:00"
- name: Upload Maui iOS xharness test results
if: ${{ always() }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: xharness-ios-test-results
path: |
Expand Down
32 changes: 15 additions & 17 deletions .github/workflows/dotnet-noavx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,17 @@ on:

env:
USE_WHISPER_NOAVX_TESTS: true
VSTEST_CONNECTION_TIMEOUT : 600
VSTEST_CONNECTION_TIMEOUT: 600

jobs:

dotnet-noavx-windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
Expand All @@ -33,7 +32,7 @@ jobs:

- name: Download Artifacts
id: download-artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
merge-multiple: true
path: runtimes
Expand All @@ -53,16 +52,16 @@ jobs:
dotnet test ./Whisper.net.slnx --no-build --logger "trx"

- name: Test Reporter
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5
if: success() || failure() # run this step even if previous step failed
uses: dorny/test-reporter@b082adf0eced0765477756c2a610396589b8c637
if: success() || failure() # run this step even if previous step failed
with:
name: Whisper.net Windows Test Results
path: ./**/*.trx
reporter: dotnet-trx

- name: Upload trx files
uses: actions/upload-artifact@v4
if: success() || failure() # run this step even if previous step failed
uses: actions/upload-artifact@v6
if: success() || failure() # run this step even if previous step failed
with:
name: test-results-windows-noavx
path: ./**/*.trx
Expand All @@ -72,10 +71,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
Expand All @@ -84,7 +83,7 @@ jobs:

- name: Download Artifacts
id: download-artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
merge-multiple: true
path: runtimes
Expand All @@ -104,18 +103,17 @@ jobs:
dotnet test ./Whisper.net.slnx --no-build --logger "trx"

- name: Test Reporter
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5
if: success() || failure() # run this step even if previous step failed
uses: dorny/test-reporter@b082adf0eced0765477756c2a610396589b8c637
if: success() || failure() # run this step even if previous step failed
with:
name: Whisper.net Linux Test Results
path: ./**/*.trx
reporter: dotnet-trx

- name: Upload trx files
uses: actions/upload-artifact@v4
if: success() || failure() # run this step even if previous step failed
uses: actions/upload-artifact@v6
if: success() || failure() # run this step even if previous step failed
with:
name: test-results-linux-noavx
path: ./**/*.trx
retention-days: 7

Loading
Loading