name: Build Android and iOS

on:
  # Trigger the workflow on push or pull request,
  # but only for the master branch
  push:
    branches:
      - master
  pull_request:
    branches:
      - master
jobs:
        
  Android:
    runs-on: windows-latest
    steps:
    - uses: actions/checkout@v1
      name: Checkout Code
    - name: setup-msbuild
      uses: microsoft/setup-msbuild@v1.0.2
    - name: Setup NuGet.exe for use with actions
      uses: NuGet/setup-nuget@v1.0.2  
    - name: Restore NuGet Packages
      run: nuget restore
    - name: Build  Application      
      run: |
        cd Droid
        msbuild qController.Droid.csproj /verbosity:normal /t:Rebuild /p:Configuration=Debug  
  iOS:
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v1
      name: Checkout Code
    - name: Restore NuGet Packages
      run: nuget restore
    - name: Build Application
      run: |
        cd iOS
        msbuild qController.iOS.csproj /verbosity:normal /t:Rebuild /p:Platform=iPhoneSimulator /p:Configuration=Debug  
