Merge pull request #95 from space928/clickable_plane_demo #214
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: windows-2022 | |
env: | |
BuildProjects: "['OmsiExtensionsCLI/OmsiExtensionsCLI.csproj', 'OmsiExtensionsUI/OmsiExtensionsUI.csproj','OmsiHookRPCPlugin/OmsiHookRPCPlugin.csproj']" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 6.0.x | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- name: Setup Windows 10 SDK | |
uses: GuillaumeFalourd/[email protected] | |
- name: Restore dependencies | |
shell: pwsh | |
run: | | |
foreach($proj in (ConvertFrom-JSON "${{env.BuildProjects}}")) { | |
dotnet restore ${{ github.workspace }}/$proj | |
} | |
- name: Build | |
shell: pwsh | |
run: | | |
foreach($proj in (ConvertFrom-JSON "${{env.BuildProjects}}")) { | |
msbuild ${{ github.workspace }}/$proj -t:rebuild -property:Configuration=Release | |
} |