2022-03-23 03:27:55 +08:00
|
|
|
name: Podcast Mobile CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-04-18 18:06:47 +08:00
|
|
|
branches: [ main, maui/perf ]
|
|
|
|
paths:
|
|
|
|
- 'src/Mobile/**'
|
|
|
|
- '**/*build.props'
|
|
|
|
- '.github/workflows/podcast-mobile.yml'
|
2022-03-23 03:27:55 +08:00
|
|
|
pull_request:
|
2022-04-18 18:06:47 +08:00
|
|
|
branches: [ main, maui/perf ]
|
|
|
|
paths:
|
|
|
|
- 'src/Mobile/**'
|
|
|
|
- '**/*build.props'
|
|
|
|
- '.github/workflows/podcast-mobile.yml'
|
2022-03-23 03:27:55 +08:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2022-04-18 18:09:49 +08:00
|
|
|
- name: Install .NET 6
|
2022-03-23 04:52:31 +08:00
|
|
|
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 .
|
2022-03-23 03:27:55 +08:00
|
|
|
|
2022-04-18 18:09:49 +08:00
|
|
|
- name: Install MAUI workload
|
2022-03-23 04:52:31 +08:00
|
|
|
shell: pwsh
|
|
|
|
run: |
|
|
|
|
$ProgressPreference = 'SilentlyContinue'
|
2022-04-15 01:33:32 +08:00
|
|
|
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
|
2022-03-23 03:27:55 +08:00
|
|
|
|
2022-04-18 18:09:49 +08:00
|
|
|
- name: Build MAUI Mobile app
|
2022-03-23 04:52:31 +08:00
|
|
|
shell: pwsh
|
|
|
|
run: |
|
|
|
|
& .\dotnet build src/Mobile/Microsoft.NetConf2021.Maui.csproj -bl:mobile.binlog
|
2022-03-23 03:27:55 +08:00
|
|
|
|
2022-04-18 18:09:49 +08:00
|
|
|
- name: Archive build log
|
2022-03-23 03:27:55 +08:00
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: logs
|
|
|
|
path: '*.binlog'
|