Skip to content

fix syntax

fix syntax #42

name: Build and test application
on: workflow_call
jobs:
strategy:
matrix:
configuration: [ReleaseWin]
platform: [x86,x64]
runs-on: windows-latest # For a list of available runner types, refer to

Check failure on line 10 in .github/workflows/dotnet-desktop.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dotnet-desktop.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
env:
Solution_Name: Vocaluxe.sln # Replace with your solution name, i.e. MyWpfApp.sln.
steps:
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
- name: Setup Nuget
uses: Nuget/[email protected]
- name: Restore nuget packages
run: nuget restore -DisableParallelProcessing $env:Solution_Name
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
# Create the app package by building and packaging the Windows Application Packaging project
- name: Create the app package
run: msbuild $env:Solution_Name /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: Vocaluxe_Nightly_${{ matrix.platform }}
path: Output