Merge pull request #126 from microsoft/maui-blazor-actions
Maui blazor actions & fix buildpull/127/head
commit
a6ca477426
|
@ -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
|
|
@ -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:
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue