-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #195 from VaclavElias/main
ci-cd: DebugShapes project added
- Loading branch information
Showing
3 changed files
with
23 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ env: | |
PROJECT_PATH_CORE: src/Stride.CommunityToolkit/Stride.CommunityToolkit.csproj | ||
PROJECT_PATH_BEPU: src/Stride.CommunityToolkit.Bepu/Stride.CommunityToolkit.Bepu.csproj | ||
PROJECT_PATH_BULLET: src/Stride.CommunityToolkit.Bullet/Stride.CommunityToolkit.Bullet.csproj | ||
PROJECT_PATH_DEBUG: src/Stride.CommunityToolkit.DebugShapes/Stride.CommunityToolkit.DebugShapes.csproj | ||
PROJECT_PATH_IMGUI: src/Stride.CommunityToolkit.ImGui/Stride.CommunityToolkit.ImGui.csproj | ||
PROJECT_PATH_SKYBOX: src/Stride.CommunityToolkit.Skyboxes/Stride.CommunityToolkit.Skyboxes.csproj | ||
PROJECT_PATH_WINDOWS: src/Stride.CommunityToolkit.Windows/Stride.CommunityToolkit.Windows.csproj | ||
|
@@ -41,28 +42,6 @@ jobs: | |
- name: Restore dependencies - Stride.CommunityToolkit | ||
run: dotnet restore ${{ env.PROJECT_PATH_CORE }} | ||
|
||
# Temporary solution, because of System.Security.Cryptography.Pkcs not found issue | ||
# - name: Modify Stride.Core.Assets.CompilerApp.targets | ||
# shell: pwsh | ||
# run: | | ||
# $targetsPath = Join-Path -Path (Get-ChildItem -Path "${env:USERPROFILE}\.nuget\packages\stride.core.assets.compilerapp\4.2.0.2122\buildTransitive" -Filter "Stride.Core.Assets.CompilerApp.targets" -Recurse).DirectoryName -ChildPath "Stride.Core.Assets.CompilerApp.targets" | ||
|
||
# [xml]$targetsXml = Get-Content -Path $targetsPath | ||
# $namespaceManager = New-Object System.Xml.XmlNamespaceManager($targetsXml.NameTable) | ||
# $namespaceManager.AddNamespace("msbuild", "http://schemas.microsoft.com/developer/msbuild/2003") | ||
|
||
# $targetNode = $targetsXml.SelectSingleNode("//msbuild:Target[@Name='_StridePrepareAssetsForPack']", $namespaceManager) | ||
# if ($targetNode -ne $null) | ||
# { | ||
# $targetNode.SetAttribute("Condition", "false") | ||
# $targetsXml.Save($targetsPath) | ||
# Write-Host "Modified _StridePrepareAssetsForPack target in Stride.Core.Assets.CompilerApp.targets" | ||
# } | ||
# else | ||
# { | ||
# Write-Host "_StridePrepareAssetsForPack target not found in Stride.Core.Assets.CompilerApp.targets" | ||
# } | ||
|
||
- name: Build | ||
run: dotnet build ${{ env.PROJECT_PATH_CORE }} --no-restore | ||
|
||
|
@@ -151,6 +130,24 @@ jobs: | |
NUGET_KEY: ${{secrets.NUGET_API_KEY}} | ||
TAG_COMMIT: false | ||
|
||
# Stride.CommunityToolkit.DebugShapes | ||
- name: Restore dependencies - Stride.CommunityToolkit.DebugShapes | ||
run: dotnet restore ${{ env.PROJECT_PATH_DEBUG }} | ||
|
||
- name: Build | ||
run: dotnet build ${{ env.PROJECT_PATH_DEBUG }} --no-restore | ||
|
||
- name: Test | ||
run: dotnet test ${{ env.PROJECT_PATH_DEBUG }} --no-build --verbosity normal | ||
|
||
- name: Publish Stride Community Toolkit - Bullet | ||
uses: alirezanet/[email protected] | ||
with: | ||
PROJECT_FILE_PATH: ${{ env.PROJECT_PATH_DEBUG }} | ||
VERSION_FILE_PATH: ${{ env.COMMON_SETTINGS_PATH }} | ||
NUGET_KEY: ${{secrets.NUGET_API_KEY}} | ||
TAG_COMMIT: false | ||
|
||
# Stride.CommunityToolkit.ImGui | ||
- name: Restore dependencies - Stride.CommunityToolkit.ImGui | ||
run: dotnet restore ${{ env.PROJECT_PATH_IMGUI }} | ||
|
@@ -174,4 +171,4 @@ jobs: | |
run: | | ||
gh release create ${{ env.VERSION }} --title "v${{ env.VERSION }}" --notes "Release notes for ${{ env.VERSION }}" --draft | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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