Merge pull request #126 from microsoft/maui-blazor-actions

Maui blazor actions & fix build
pull/127/head
James Montemagno 2022-05-12 09:21:40 -07:00 committed by GitHub
commit a6ca477426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 50 additions and 4 deletions

View File

@ -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

View File

@ -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:

View File

@ -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);
}