Correct loader path for libogg #38
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
name: Build and test | |
on: | |
push: | |
branches: [ "main", "dev" ] | |
paths-ignore: | |
- .gitignore.txt | |
- README.md | |
- LICENSE | |
pull_request: | |
branches: [ "main", "dev" ] | |
jobs: | |
windows: | |
name: Windows | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Download external dependencies | |
run: | | |
$ProgressPreference = 'SilentlyContinue' | |
Invoke-WebRequest -Uri https://audioworks.blob.core.windows.net/prerequisites/AppleApplicationSupport.msi -OutFile AppleApplicationSupport.msi | |
Invoke-WebRequest -Uri https://audioworks.blob.core.windows.net/prerequisites/AppleApplicationSupport64.msi -OutFile AppleApplicationSupport64.msi | |
- name: Install external dependencies | |
run: | | |
msiexec /i AppleApplicationSupport.msi /qb- | |
msiexec /i AppleApplicationSupport64.msi /qb- | |
shell: cmd | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build | |
run: dotnet build AudioWorks\AudioWorks.sln --configuration Release | |
- name: Test AudioWorks.Common | |
run: dotnet test AudioWorks\tests\AudioWorks.Common.Tests\AudioWorks.Common.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: Test AudioWorks.Extensibility | |
run: dotnet test AudioWorks\tests\AudioWorks.Extensibility.Tests\AudioWorks.Extensibility.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: Test AudioWorks.Api | |
run: dotnet test AudioWorks\tests\AudioWorks.Api.Tests\AudioWorks.Api.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: Upload test output | |
if: success() || failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Test output for Windows | |
path: 'AudioWorks\tests\AudioWorks.Api.Tests\bin\Release\net8.0\Output\Encode\Valid\' | |
- name: Test AudioWorks.Commands | |
run: dotnet test AudioWorks\tests\AudioWorks.Commands.Tests\AudioWorks.Commands.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Build artifacts | |
path: 'AudioWorks\src\artifacts\package\release\' | |
- name: ReportGenerator | |
uses: danielpalme/ReportGenerator-GitHub-Action@5.4.4 | |
with: | |
reports: '${{ github.workspace }}\**\coverage.cobertura.xml' | |
targetdir: 'coveragereport' | |
reporttypes: 'HtmlInline;Cobertura;MarkdownSummaryGithub;' | |
assemblyfilters: '-*.Tests;-*.TestUtilities' | |
filefilters: '-*.g.cs' | |
tag: '${{ github.run_number }}_${{ github.run_id }}' | |
- name: Upload coverage report artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Coverage Report for Windows | |
path: coveragereport | |
- name: Publish coverage in build summary | |
run: cat coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY | |
shell: bash | |
ubuntu: | |
name: Ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install library dependencies | |
run: sudo apt-get install --yes libflac12t64 libmp3lame0 libopusenc0 libebur128-1 libvorbisenc2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build | |
run: dotnet build AudioWorks/AudioWorks.sln --configuration Release | |
- name: Test AudioWorks.Common | |
run: dotnet test AudioWorks/tests/AudioWorks.Common.Tests/AudioWorks.Common.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: Test AudioWorks.Extensibility | |
run: dotnet test AudioWorks/tests/AudioWorks.Extensibility.Tests/AudioWorks.Extensibility.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: Test AudioWorks.Api | |
run: dotnet test AudioWorks/tests/AudioWorks.Api.Tests/AudioWorks.Api.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: Upload test output | |
if: success() || failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Test output for Ubuntu | |
path: 'AudioWorks/tests/AudioWorks.Api.Tests/bin/Release/net8.0/Output/Encode/Valid/' | |
- name: Test AudioWorks.Commands | |
run: dotnet test AudioWorks/tests/AudioWorks.Commands.Tests/AudioWorks.Commands.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: ReportGenerator | |
uses: danielpalme/ReportGenerator-GitHub-Action@5.4.4 | |
with: | |
reports: '${{ github.workspace }}/**/coverage.cobertura.xml' | |
targetdir: 'coveragereport' | |
reporttypes: 'HtmlInline;Cobertura;MarkdownSummaryGithub;' | |
assemblyfilters: '-*.Tests;-*.TestUtilities' | |
filefilters: '-*.g.cs' | |
tag: '${{ github.run_number }}_${{ github.run_id }}' | |
- name: Upload coverage report artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Coverage Report for Ubuntu | |
path: coveragereport | |
- name: Publish coverage in build summary | |
run: cat coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY | |
mac_arm: | |
name: Mac on ARM | |
runs-on: macos-14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build | |
run: dotnet build AudioWorks/AudioWorks.sln --configuration Release | |
- name: Test AudioWorks.Common | |
run: dotnet test AudioWorks/tests/AudioWorks.Common.Tests/AudioWorks.Common.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: Test AudioWorks.Extensibility | |
run: dotnet test AudioWorks/tests/AudioWorks.Extensibility.Tests/AudioWorks.Extensibility.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: Test AudioWorks.Api | |
run: dotnet test AudioWorks/tests/AudioWorks.Api.Tests/AudioWorks.Api.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: Upload test output | |
if: success() || failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Test output for Mac on ARM | |
path: 'AudioWorks/tests/AudioWorks.Api.Tests/bin/Release/net8.0/Output/Encode/Valid/' | |
- name: Test AudioWorks.Commands | |
run: dotnet test AudioWorks/tests/AudioWorks.Commands.Tests/AudioWorks.Commands.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: ReportGenerator | |
uses: danielpalme/ReportGenerator-GitHub-Action@5.4.4 | |
with: | |
reports: '${{ github.workspace }}/**/coverage.cobertura.xml' | |
targetdir: 'coveragereport' | |
reporttypes: 'HtmlInline;Cobertura;MarkdownSummaryGithub;' | |
assemblyfilters: '-*.Tests;-*.TestUtilities' | |
filefilters: '-*.g.cs' | |
tag: '${{ github.run_number }}_${{ github.run_id }}' | |
- name: Upload coverage report artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Coverage Report for Mac on ARM | |
path: coveragereport | |
- name: Publish coverage in build summary | |
run: cat coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY | |
mac_intel: | |
name: Mac on Intel | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build | |
run: dotnet build AudioWorks/AudioWorks.sln --configuration Release | |
- name: Test AudioWorks.Common | |
run: dotnet test AudioWorks/tests/AudioWorks.Common.Tests/AudioWorks.Common.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: Test AudioWorks.Extensibility | |
run: dotnet test AudioWorks/tests/AudioWorks.Extensibility.Tests/AudioWorks.Extensibility.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: Test AudioWorks.Api | |
run: dotnet test AudioWorks/tests/AudioWorks.Api.Tests/AudioWorks.Api.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: Upload test output | |
if: success() || failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Test output for Mac on Intel | |
path: 'AudioWorks/tests/AudioWorks.Api.Tests/bin/Release/net8.0/Output/Encode/Valid/' | |
- name: Test AudioWorks.Commands | |
run: dotnet test AudioWorks/tests/AudioWorks.Commands.Tests/AudioWorks.Commands.Tests.csproj --configuration Release --no-build --collect:"XPlat Code Coverage" | |
- name: ReportGenerator | |
uses: danielpalme/ReportGenerator-GitHub-Action@5.4.4 | |
with: | |
reports: '${{ github.workspace }}/**/coverage.cobertura.xml' | |
targetdir: 'coveragereport' | |
reporttypes: 'HtmlInline;Cobertura;MarkdownSummaryGithub;' | |
assemblyfilters: '-*.Tests;-*.TestUtilities' | |
filefilters: '-*.g.cs' | |
tag: '${{ github.run_number }}_${{ github.run_id }}' | |
- name: Upload coverage report artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Coverage Report for Mac on Intel | |
path: coveragereport | |
- name: Publish coverage in build summary | |
run: cat coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY |