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