Skip to content

PR job trigger test

PR job trigger test #6

name: Build Visual Studio Package
on:
pull_request:
paths:
- '.github/workflows/build-vs-package.yml'
- 'build/Stride.VisualStudio.sln'
- 'sources/tools/Stride.VisualStudio.*/**'
- 'sources/targets/**'
- '!**/.all-contributorsrc'
- '!**/.editorconfig'
- '!**/.gitignore'
- '!**/*.md'
- '!crowdin.yml'
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
inputs:
build-type:
description: Build Configuration
default: Debug
type: choice
options:
- Debug
# - Release # has a bug and cannot build
workflow_call:
inputs:
build-type:
default: Debug
type: string
jobs:
#
# Build Visual Studio Package
#
VS-Package:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- uses: microsoft/setup-msbuild@v2
- name: Build
run: |
msbuild build\Stride.VisualStudio.sln `
-restore -m:1 -nr:false `
-v:m -p:WarningLevel=0 `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
-p:StrideSkipUnitTests=true `
-p:StrideSkipAutoPack=true