Coder Social home page Coder Social logo

saamerm / xamarin-githubactions-devops Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 15.0 449 KB

This repo contains the result of my work combining GitHub Actions with Xamarin Forms for iOS & Android

Home Page: https://levelup.gitconnected.com/using-github-actions-with-ios-and-android-xamarin-apps-693a93b48a61?source=friends_link&sk=cd81773f2e5a5931ae49c9362b4db795

License: GNU General Public License v3.0

C# 100.00%
xamarin-githubactions-devops xamarin github-actions xamarin-forms xamarinforms githubactions ci-cd cicd android ios

xamarin-githubactions-devops's Introduction

Xamarin-GitHubActions-DevOps

This repo contains the result of my work combining GitHub Actions with Xamarin to Automatically Build iOS & Android apps

You can take a look at the article here that has more details. It will also give you a better understanding of what you see in the Actions folder.

Also, here's a short snippet of what to do for GitLab

Where's the file published?

Right now, the file is published as an "artifact" ZIP file actions/upload-artifact#3 and can be found below your successful Action, as you can see here image

Build your Android code & Publish the Signed APK from the build

If you want to build and publish the APK, simply copy this into your repository's .github/workflows/main.yml file. Make sure to change Blank in all instances with your own Project/Solution name and change "com.tfp.blank" with the bundle identifier mentioned in your AndroidManifest file.

name: CI on Push and Pull Request
on: [push, pull_request]
jobs:
  Android:
    runs-on: macos-latest    
    steps:
    - uses: actions/checkout@v1      
    - name: Android
      run: |
        cd Blank
        nuget restore
        msbuild Blank.Android/Blank.Android.csproj /verbosity:normal /t:Rebuild /t:PackageForAndroid /t:SignAndroidPackage /p:Configuration=Debug 
    - uses: actions/upload-artifact@v2
      with:
        name: Android App
        path: Blank/Blank.Android/bin/Debug/com.tfp.blank-Signed.apk        

Build your iOS code & Publish the simulator APP from the build

If you want to build and publish the simulator APP file, simply copy this into your repository's .github/workflows/main.yml file. Make sure to change Blank in all instances with your own Project/Solution name.

name: CI on Push and Pull Request
on: [push, pull_request]
jobs:
  iOS:
    runs-on: macos-latest    
    steps:
    - name: Checkout repository
      uses: actions/checkout@v2        
    - name: iOS Simulator
      run: |
        cd Blank
        nuget restore
        msbuild Blank/Blank.iOS/Blank.iOS.csproj /verbosity:normal /t:Rebuild /p:Platform=iPhoneSimulator /p:Configuration=Debug        
    - uses: actions/upload-artifact@v2
      with:
        name: iOS Simulator App
        path: Blank/Blank.iOS/bin/iPhoneSimulator/Debug/Blank.iOS.app        

xamarin-githubactions-devops's People

Contributors

saamerm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xamarin-githubactions-devops's Issues

error APT2263: unexpected element <queries> found in <manifest>.

error APT2263: unexpected element found in .
Have you ever seen this error code when building xamarin.android?

/Users/runner/work/InnoADLMedical/InnoADLMedical/InnoADLMedical/InnoADLMedical.Android/obj/Debug/android/manifest/AndroidManifest.xml(46): error APT2263: unexpected element found in .

**name: Build Xamarin.Android app

on: [push]

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Set default Xamarin SDK versions
  run: |
    $VM_ASSETS/select-xamarin-sdk-v2.sh --mono=6.10 --android=10.2
- name: Setup .NET Core SDK 5.0.x
  uses: actions/setup-dotnet@v1
  with:
    dotnet-version: '5.0.x'

- name: Install dependencies
  run: nuget restore ./InnoADLMedical.sln

- name: Build
  run: msbuild ./InnoADLMedical/InnoADLMedical.Android/InnoADLMedical.Android.csproj /t:PackageForAndroid /p:Configuration=Debug**

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.