Skip to content

Commit

Permalink
Build nuget package on appveyor (#8)
Browse files Browse the repository at this point in the history
* Include appveyor.yml in solution file
* Add artifacts for compiled Irony.dll files
* Build .nupkg
* Change build configuration to Release
* Add dependency for netstandard2.0
  • Loading branch information
igitur authored and yallie committed May 8, 2018
1 parent 582e7f5 commit 147bcb2
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
28 changes: 28 additions & 0 deletions Irony/Irony.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<package>
<metadata>
<id>Irony</id>
<title>Irony</title>
<version>$version$</version>
<authors>Roman Ivantsov</authors>
<owners>Roman Ivantsov</owners>
<description>Irony is a development kit for implementing languages on .NET platform.</description>
<licenseUrl>https://github.com/IronyProject/Irony/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/IronyProject/Irony</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags> irony ast grammar bnf </tags>
<dependencies>
<group targetFramework=".NETFramework4.0" />
<group targetFramework=".NETFramework4.5" />
<group targetFramework=".NETStandard2.0">
<dependency id="System.Reflection.Emit.Lightweight" version="4.3.0" />
</group>
</dependencies>
</metadata>
<files>
<file src="bin\Release\net40\Irony.dll" target="lib\net40\Irony.dll" />
<file src="bin\Release\net45\Irony.dll" target="lib\net45\Irony.dll" />
<file src="bin\Release\netstandard2.0\Irony.dll" target="lib\netstandard2.0\Irony.dll" />
<file src="bin\Release\sl5\Irony.dll" target="lib\sl5\Irony.dll" />
</files>
</package>
1 change: 1 addition & 0 deletions Irony_All.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ VisualStudioVersion = 15.0.27130.2020
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{05F0AC0D-AD43-45B4-8A98-00C54CF5280D}"
ProjectSection(SolutionItems) = preProject
appveyor.yml = appveyor.yml
License.txt = License.txt
ReadMe.txt = ReadMe.txt
EndProjectSection
Expand Down
23 changes: 22 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
version: 1.0.{build}

image: Visual Studio 2017

configuration : Release

before_build:
- cmd: nuget restore Irony_All.sln

build:
project: Irony_All.sln
parallel: true
verbosity: minimal
verbosity: minimal

after_build:
- nuget pack Irony\Irony.nuspec -version "%APPVEYOR_BUILD_VERSION%" -OutputDirectory Irony\bin\Release

artifacts:
- path: Irony/bin/Release/netstandard2.0/Irony.dll
- path: Irony/bin/Release/net40/Irony.dll
- path: Irony/bin/Release/net45/Irony.dll
- path: Irony/bin/Release/sl5/Irony.dll

- path: Irony/bin/Release/netstandard2.0/Irony.pdb
- path: Irony/bin/Release/net40/Irony.pdb
- path: Irony/bin/Release/net45/Irony.pdb
- path: Irony/bin/Release/sl5/Irony.pdb

- path: '**/bin/Release/**/*.nupkg'

0 comments on commit 147bcb2

Please sign in to comment.