48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: Podcast Mobile CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- 'maui/perf'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- 'maui/perf'
|
|
|
|
# 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 Microsoft.NetConf2021.Maui.csproj
|
|
shell: pwsh
|
|
run: |
|
|
& .\dotnet build src/Mobile/Microsoft.NetConf2021.Maui.csproj -bl:mobile.binlog
|
|
|
|
- name: archive logs
|
|
if: always()
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: logs
|
|
path: '*.binlog'
|