diff --git a/.github/workflows/Tools.yml b/.github/workflows/Tools.yml index d6e7a936..3b85dd05 100644 --- a/.github/workflows/Tools.yml +++ b/.github/workflows/Tools.yml @@ -14,9 +14,9 @@ jobs: fetch-depth: 0 - name: Run Nuke Build working-directory: ./tools - run: ./.nuke/build.cmd CreateInstaller Publish --GitHubToken ${{ secrets.GITHUB_TOKEN }} + run: ./.nuke/build.cmd CreateInstaller Publish - name: Upload artifacts uses: actions/upload-artifact@v4 with: name: Revit-tools - path: tools/output \ No newline at end of file + path: tools/output/**/* \ No newline at end of file diff --git a/tools/build/Build.Publish.cs b/tools/build/Build.Publish.cs index 5db842f7..273189a1 100644 --- a/tools/build/Build.Publish.cs +++ b/tools/build/Build.Publish.cs @@ -9,19 +9,30 @@ sealed partial class Build { DotNetPublish(settings => settings .SetProject(Solution.DependenciesReport.Path) - .SetOutput("output") - .SetRuntime("win-x64") + .SetOutput("output/native") + .SetCommonPublishProperties() .SetProperty("PublishAot", true) - .SetProperty("AssemblyName", "DependenciesReport-native") - .SetVerbosity(DotNetVerbosity.minimal)); - + .SetProperty("AssemblyName", "DependenciesReport-native")); + DotNetPublish(settings => settings .SetProject(Solution.DependenciesReport.Path) - .SetOutput("output") - .SetRuntime("win-x64") + .SetOutput("output/dotnet") + .SetCommonPublishProperties() .SetSelfContained(false) .SetPublishSingleFile(true) - .SetProperty("AssemblyName", "DependenciesReport-dotnet8") - .SetVerbosity(DotNetVerbosity.minimal)); + .SetProperty("AssemblyName", "DependenciesReport-dotnet")); }); +} + +static class PublishExtensions +{ + public static DotNetPublishSettings SetCommonPublishProperties(this DotNetPublishSettings settings) + { + return settings + .SetRuntime("win-x64") + .SetConfiguration("Release") + .SetProperty("DebugType", "None") + .SetProperty("DebugSymbols", "False") + .SetVerbosity(DotNetVerbosity.minimal); + } } \ No newline at end of file diff --git a/tools/source/DependenciesReport/DependenciesReport.sln b/tools/source/DependenciesReport/DependenciesReport.sln deleted file mode 100644 index 880b191f..00000000 --- a/tools/source/DependenciesReport/DependenciesReport.sln +++ /dev/null @@ -1,16 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DependenciesReport", "DependenciesReport.csproj", "{BD167189-28E1-41F6-BA68-80BC89D113E0}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {BD167189-28E1-41F6-BA68-80BC89D113E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BD167189-28E1-41F6-BA68-80BC89D113E0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BD167189-28E1-41F6-BA68-80BC89D113E0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BD167189-28E1-41F6-BA68-80BC89D113E0}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection -EndGlobal