Skip to content

Instantly share code, notes, and snippets.

@saamerm
Last active January 12, 2020 18:01
Show Gist options
  • Save saamerm/e50a6e8beca4c8538d640645995d43f3 to your computer and use it in GitHub Desktop.
Save saamerm/e50a6e8beca4c8538d640645995d43f3 to your computer and use it in GitHub Desktop.
GitHub action yaml for Xamarin Native/Forms Android and iOS apps
name: CI on Push and Pull Request
on: [push, pull_request]
jobs:
Practice:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
- name: Show what's in the directory
run: |
ls
- name: Show what all is in the parent directory
run: |
cd ..
ls
Android:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Android
run: |
cd Blank
nuget restore
cd Blank.Android
msbuild Blank.Android.csproj /verbosity:normal /t:Rebuild /p:Configuration=Debug
iOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: iOS
run: |
cd Blank
nuget restore
msbuild Blank.iOS/Blank.iOS.csproj /verbosity:normal /t:Rebuild /p:Platform=iPhoneSimulator /p:Configuration=Debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment