diff --git a/.github/workflows/podcast-dotnet-maui-blazor.yml b/.github/workflows/podcast-dotnet-maui-blazor.yml new file mode 100644 index 0000000..04dcaca --- /dev/null +++ b/.github/workflows/podcast-dotnet-maui-blazor.yml @@ -0,0 +1,46 @@ +name: Podcast .NET MAUI Blazor CI + +on: + push: + branches: [ main, maui/perf ] + paths: + - 'src/Mobile/**' + - 'src/Web/Components/**' + - '**/*build.props' + - '.github/workflows/podcast-dotnet-maui-blazor.yml' + pull_request: + branches: [ main, maui/perf ] + paths: + - 'src/Mobile/**' + - 'src/Web/Components/**' + - '**/*build.props' + - '.github/workflows/podcast-dotnet-maui-blazor.yml' + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build-mobile: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install .NET 6 + shell: pwsh + run: | + $ProgressPreference = 'SilentlyContinue' + Invoke-WebRequest https://dot.net/v1/dotnet-install.ps1 -OutFile dotnet-install.ps1 + .\dotnet-install.ps1 -Channel 6.0.3xx -Quality daily -InstallDir . + + - name: Install MAUI workload + shell: pwsh + run: | + $ProgressPreference = 'SilentlyContinue' + Invoke-WebRequest https://raw.githubusercontent.com/dotnet/maui/main/NuGet.config -OutFile maui-main-NuGet.config + & .\dotnet workload install maui --from-rollback-file https://aka.ms/dotnet/maui/main.json --configfile maui-main-NuGet.config + + - name: Build MAUI Blazor Mobile app + shell: pwsh + run: | + & .\dotnet build src/MobileBlazor/mauiapp/NetPodsMauiBlazor.csproj -bl:mobile.binlog \ No newline at end of file diff --git a/.github/workflows/podcast-mobile.yml b/.github/workflows/podcast-dotnet-maui.yml similarity index 91% rename from .github/workflows/podcast-mobile.yml rename to .github/workflows/podcast-dotnet-maui.yml index ab237b7..405458e 100644 --- a/.github/workflows/podcast-mobile.yml +++ b/.github/workflows/podcast-dotnet-maui.yml @@ -1,4 +1,4 @@ -name: Podcast Mobile CI +name: Podcast .NET MAUI CI on: push: @@ -7,14 +7,14 @@ on: - 'src/Mobile/**' - 'src/Web/Components/**' - '**/*build.props' - - '.github/workflows/podcast-mobile.yml' + - '.github/workflows/podcast-dotnet-maui.yml' pull_request: branches: [ main, maui/perf ] paths: - 'src/Mobile/**' - 'src/Web/Components/**' - '**/*build.props' - - '.github/workflows/podcast-mobile.yml' + - '.github/workflows/podcast-dotnet-maui.yml' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/src/Mobile/Blazor/ListenTogetherComponent.razor b/src/Mobile/Blazor/ListenTogetherComponent.razor index b3a6601..f8bfb0b 100644 --- a/src/Mobile/Blazor/ListenTogetherComponent.razor +++ b/src/Mobile/Blazor/ListenTogetherComponent.razor @@ -101,7 +101,7 @@ private async Task UpdateWebThemeAsync() { var darkModeIsActive = Settings.Theme == AppTheme.Dark; - await ThemeInterop.SetTheme(darkModeIsActive ? Theme.Dark : Theme.Light); + await ThemeInterop.SetThemeAsync(darkModeIsActive ? Theme.Dark : Theme.Light); }