Skip to content

Commit

Permalink
Set extra publish properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Nice3point committed Sep 18, 2024
1 parent 600edb4 commit e66ddc2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
path: tools/output/**/*
29 changes: 20 additions & 9 deletions tools/build/Build.Publish.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
16 changes: 0 additions & 16 deletions tools/source/DependenciesReport/DependenciesReport.sln

This file was deleted.

0 comments on commit e66ddc2

Please sign in to comment.