Skip to content

Commit

Permalink
Update build system (#54) (#55)
Browse files Browse the repository at this point in the history
* added symbol package and sourcelink support

* updated build system
  • Loading branch information
Aaronontheweb authored Mar 2, 2020
1 parent 242ca87 commit c5a1e4d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
18 changes: 13 additions & 5 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,23 @@ let solutionFile = FindFirstMatchingFile "*.sln" __SOURCE_DIRECTORY__ // dynami
let buildNumber = environVarOrDefault "BUILD_NUMBER" "0"
let hasTeamCity = (not (buildNumber = "0")) // check if we have the TeamCity environment variable for build # set
let preReleaseVersionSuffix = "beta" + (if (not (buildNumber = "0")) then (buildNumber) else DateTime.UtcNow.Ticks.ToString())
let versionSuffix =
match (getBuildParam "nugetprerelease") with
| "dev" -> preReleaseVersionSuffix
| _ -> ""

let releaseNotes =
File.ReadLines "./RELEASE_NOTES.md"
File.ReadLines (__SOURCE_DIRECTORY__ @@ "RELEASE_NOTES.md")
|> ReleaseNotesHelper.parseReleaseNotes

let versionFromReleaseNotes =
match releaseNotes.SemVer.PreRelease with
| Some r -> r.Origin
| None -> ""

let versionSuffix =
match (getBuildParam "nugetprerelease") with
| "dev" -> preReleaseVersionSuffix
| "" -> versionFromReleaseNotes
| str -> str


// Directories
let toolsDir = __SOURCE_DIRECTORY__ @@ "tools"
let output = __SOURCE_DIRECTORY__ @@ "bin"
Expand Down
10 changes: 9 additions & 1 deletion src/common.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Copyright>Copyright © 2015-2019 Petabridge®</Copyright>
<Copyright>Copyright © 2015-2020 Petabridge®</Copyright>
<Authors>Petabridge</Authors>
<VersionPrefix>0.3</VersionPrefix>
<PackageReleaseNotes>Bumped Akka version**
Expand All @@ -16,4 +16,12 @@ Bumped Akka version to 1.4.1-rc1</PackageReleaseNotes>
<TestSdkVersion>16.5.0</TestSdkVersion>
<AkkaVersion>1.4.1-rc1</AkkaVersion>
</PropertyGroup>
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
</Project>

0 comments on commit c5a1e4d

Please sign in to comment.