Build android #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: windowsCI | |
on: | |
push: | |
branches: [ maui ] | |
pull_request: | |
branches: [ maui ] | |
workflow_dispatch: | |
env: | |
DOTNETVERSION: 7.0.404 | |
jobs: | |
buildAndroid: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET SDK ${{env.DOTNETVERSION}} | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '${{env.DOTNETVERSION}}' | |
- name: List installed .NET info | |
shell: pwsh | |
run: dotnet --info | |
- name: Install .NET MAUI | |
shell: bash | |
run: | | |
dotnet nuget locals all --clear | |
dotnet workload install maui --source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json --source https://api.nuget.org/v3/index.json | |
dotnet workload install android maui wasm-tools --source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json --source https://api.nuget.org/v3/index.json | |
- uses: Setup Java 11 | |
with: | |
java-version: '11' | |
- name: Restore nuget packages | |
run: | | |
dotnet restore BusSchedule.sln | |
- name: Load Google Service file | |
env: | |
DATA: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
run: echo $DATA | base64 -di > BusSchedule.Android/Assets/google-services.json | |
- name: Build | |
run: | | |
dotnet build BusSchedule.Android/BusSchedule.Android.csproj -c Release --no-restore |