dotnet-sdk-ci/action.yml
2023-10-25 23:51:23 +03:00

43 lines
1017 B
YAML

name: 'Dotnet sdk build'
description: 'Building arm-gcc projects'
branding:
color: blue
icon: app-indicator
inputs:
build-type:
description: 'Build type (Debug or Release)'
required: true
default: Release
build-output:
description: 'Build output folder'
required: true
default: Build
target-platform:
description: 'Target platform'
required: true
default: win-x64
self-contained:
description: 'Pack all to executable'
required: true
default: false
windows-targeting:
description: 'Enable or disable windows targeting'
required: true
default: true
runs:
using: 'docker'
image: 'docker://mcr.microsoft.com/dotnet/sdk:6.0'
args:
- dotnet
- publish
- -c
- ${{ inputs.build-type }}
- -o
- ${{ inputs.build-output }}
- -r
- ${{ inputs.target-platform }}
- --self-contained
- ${{ inputs.self-contained }}
- /p:EnableWindowsTargeting=${{ inputs.windows-targeting }}