From 4b105ba8e4c24d99117b06c50c8aa9f737de6889 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Thu, 12 May 2022 06:55:41 -0700 Subject: [PATCH 1/3] Update actions for maui to also build hybrid app --- .../workflows/podcast-dotnet-maui-blazor.yml | 46 +++++++++++++++++++ ...ast-mobile.yml => podcast-dotnet-maui.yml} | 6 +-- 2 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/podcast-dotnet-maui-blazor.yml rename .github/workflows/{podcast-mobile.yml => podcast-dotnet-maui.yml} (91%) diff --git a/.github/workflows/podcast-dotnet-maui-blazor.yml b/.github/workflows/podcast-dotnet-maui-blazor.yml new file mode 100644 index 0000000..22bced2 --- /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/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: From e59787ae4ee221284b919d3385e6394b53995cd8 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Thu, 12 May 2022 06:57:45 -0700 Subject: [PATCH 2/3] fix listen together --- src/Mobile/Blazor/ListenTogetherComponent.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } From 1a0dad7d94b53dc91a4e6460c3e991db2cc51f97 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Thu, 12 May 2022 07:07:52 -0700 Subject: [PATCH 3/3] update blazor route for csproj --- .github/workflows/podcast-dotnet-maui-blazor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/podcast-dotnet-maui-blazor.yml b/.github/workflows/podcast-dotnet-maui-blazor.yml index 22bced2..04dcaca 100644 --- a/.github/workflows/podcast-dotnet-maui-blazor.yml +++ b/.github/workflows/podcast-dotnet-maui-blazor.yml @@ -43,4 +43,4 @@ jobs: - name: Build MAUI Blazor Mobile app shell: pwsh run: | - & .\dotnet build src/MobileBlazor/NetPodsMauiBlazor.csproj -bl:mobile.binlog \ No newline at end of file + & .\dotnet build src/MobileBlazor/mauiapp/NetPodsMauiBlazor.csproj -bl:mobile.binlog \ No newline at end of file