dotnet-podcasts/.github/workflows/podcast-dotnet-maui-blazor-...

46 lines
1.4 KiB
YAML
Raw Normal View History

name: Podcast .NET MAUI Blazor CI
on:
push:
2022-05-13 19:19:58 +08:00
branches: [ main ]
paths:
2022-05-13 19:19:58 +08:00
- 'src/MobileBlazor/**'
- 'src/Web/Components/**'
- '**/*build.props'
2022-05-13 19:19:58 +08:00
- '.github/workflows/podcast-dotnet-maui-blazor-ci.yml'
pull_request:
2022-05-13 19:19:58 +08:00
branches: [ main ]
paths:
2022-05-13 19:19:58 +08:00
- 'src/MobileBlazor/**'
- 'src/Web/Components/**'
- '**/*build.props'
2022-05-13 19:19:58 +08:00
- '.github/workflows/podcast-dotnet-maui-blazor-ci.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: |
2022-05-12 22:07:52 +08:00
& .\dotnet build src/MobileBlazor/mauiapp/NetPodsMauiBlazor.csproj -bl:mobile.binlog