Skip to content

igotinfected-ci/build-monogame

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

build-monogame

This action allows you to build your monogame project via msbuild.

The action sets up dotnet, msbuild, and the mgcb build tool. It then builds the Content resources using mgcb and then builds the game/project using msbuild.

Usage

name: Run checks on incoming PR

on:
  pull_request:
    branches: [master, release, develop]

  # allow running this workflow manually
  workflow_dispatch:

jobs:
  android-build-check:
    runs-on: windows-latest

    steps:
      - name: Check out the repo
        uses: actions/checkout@v2

      - name: Build android project
        uses: igotinfected-ci/build-monogame@v2
        with:
          solution-path: '${{ github.workspace }}\Project\Project.sln'
          content-mgcb-path: '${{ github.workspace }}\Project\Android\Content'
          content-mgcb-platform: "Android"
          csproj-path: '${{ github.workspace }}\Project\Android.csproj'
          build-target: "PackageForAndroid"
          build-configuration: "Release"

License

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