Home

Awesome

setup-xamarin

This action is intended to switch between pre-installed versions of Xamarin and Mono for macOS images in GitHub Actions.

Available parameters

ArgumentRequiredDescriptionAvailable versions
mono-versionFalseSpecify the version of Mono to switchLink
xamarin-ios-versionFalseSpecify the version of Xamarin.iOS to switchLink
xamarin-mac-versionFalseSpecify the version of Xamarin.Mac to switchLink
xamarin-android-versionFalseSpecify the version of Xamarin.Android to switchLink
xcode-versionFalseSpecify the Xcode to use with Xamarin.iOS and Xamarin.MacLink

Usage

name: CI
on: [push]
jobs:
  build:
    name: Setup Xamarin and Mono versions
    runs-on: macos-latest
    steps:
    - name: setup-xamarin
      uses: maxim-lobanov/setup-xamarin@v1
      with:
        mono-version: '6.6' # specify version in '<major>.<minor>' format
        xamarin-ios-version: '13' # specify version in '<major>' format
        xamarin-mac-version: latest # specify 'latest' keyword to pick up the latest available version
        xamarin-android-version: '10.1.3.7' # specify full version; it is not recomended option because your pipeline can be broken suddenly in future
        xcode-version: '11.x' # set the latest available Xcode 11

License

The scripts and documentation in this project are released under the MIT License