Skip to content
check-circle

GitHub Action

Build MonoGame project

v2.0.3 Latest version

Build MonoGame project

check-circle

Build MonoGame project

Build your MonoGame projects with this action. Useful for build checks

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Build MonoGame project

uses: igotinfected-ci/build-monogame@v2.0.3

Learn more about this action in igotinfected-ci/build-monogame

Choose a version

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