Build#

workflow build#

Compiles a KSP mod and uploads the results as a workflow artifact. It’s meant to be suitable for continuous integration builds, as it simply compiles whatever is in the repository without updating version numbers etc.

For details:

Example

- uses: KSPModdingLibs/KSPBuildTools/.github/workflows/build.yml@1.1.1

Inputs

input build-configuration#
Default:
Release
Type:
string
input artifacts#
Default:
GameData LICENSE* README* CHANGELOG*
Type:
string
input ksp-zip-url#
Default:
https://github.com/KSPModdingLibs/KSPLibs/raw/main/KSP-1.12.5.zip
Type:
string
input dependency-identifiers#
Type:
string
input solution-file-path#
Type:
string
input use-msbuild#
Default:
True
Type:
boolean

If MSBuild should be used. If your mod has no msbuild project (e.g. a pure part mod) you should set this to false

input use-nuget-restore#
Default:
False
Type:
boolean

Set to true if your project uses a packages.config file instead of packagereferences. This will cause the job to run on the Ubuntu-22.04 image instead of Ubuntu-24.04

input dotnet-version#
Default:
8.x
Type:
string

Version of dotnet compiler to use.

input use-ckan#
Default:
False
Type:
boolean

If CKAN should be installed to install dependencies in the msbuild project.

Secrets

secret ksp-zip-password#
Required:
False