mirror of https://github.com/gabime/spdlog.git
Added the local pipeline and nuspec file
parent
ecd382d9aa
commit
da94d7bd0f
@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
|
||||
|
||||
<!--
|
||||
First meta data information about the package itself.
|
||||
Documentation can be found at: (or via nuget.org)
|
||||
https://docs.microsoft.com/en-us/nuget/reference/nuspec#optional-metadata-elements
|
||||
-->
|
||||
<metadata>
|
||||
<!-- required: -->
|
||||
<id>SiddiqSoft.spdlog</id>
|
||||
<version>$VERSION$</version>
|
||||
<authors>Gabi Melman</authors>
|
||||
<description>Fast C++ logging library</description>
|
||||
<tags>logging spdlog cpp11 native nativepackage cpp</tags>
|
||||
<projectUrl>https://github.com/abdulkareem-siddiq/spdlog</projectUrl>
|
||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||
<license type="expression">MIT</license>
|
||||
<releaseNotes></releaseNotes>
|
||||
<copyright>Copyright (c) 2016 Gabi Melman</copyright>
|
||||
<!-- Dependencies -->
|
||||
<dependencies>
|
||||
</dependencies>
|
||||
</metadata>
|
||||
|
||||
<!--
|
||||
Specify the content for your package.
|
||||
This is only a packing list, no build semantic is defined here!
|
||||
Stick to conventions described by nuget.org:
|
||||
https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package#from-a-convention-based-working-directory
|
||||
-->
|
||||
<files>
|
||||
<!-- includes -->
|
||||
<file src="..\include\spdlog\**" target="build\native\include\spdlog\" />
|
||||
|
||||
<!-- MSBuild .targets files -->
|
||||
<file src="gabime.spdlog.targets" target="build\native" />
|
||||
</files>
|
||||
</package>
|
||||
<!--
|
||||
TO BUILD for local consumption or upload to your private nuget repo:
|
||||
nuget.exe pack .\gabime.spdlog.nuspec -Properties VERSION=1.9.2
|
||||
This will create gabime.spdlog.1.9.2.nupkg file. You can push this to your local store.
|
||||
Usage is simple, you #include "spdlog/spdlog.h" etc..
|
||||
-->
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemDefinitionGroup>
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
</Project>
|
@ -0,0 +1,54 @@
|
||||
trigger:
|
||||
batch: true
|
||||
branches:
|
||||
include:
|
||||
- main
|
||||
- v1.x
|
||||
paths:
|
||||
exclude:
|
||||
- README.md
|
||||
|
||||
pool:
|
||||
name: Default
|
||||
demands:
|
||||
- msbuild
|
||||
- visualstudio
|
||||
- vstest
|
||||
|
||||
variables:
|
||||
buildPlatform: 'x64'
|
||||
|
||||
steps:
|
||||
- task: NuGetToolInstaller@1
|
||||
displayName: 'Use NuGet 5.10.0'
|
||||
inputs:
|
||||
versionSpec: '5.10.0'
|
||||
checkLatest: true
|
||||
|
||||
- task: GitVersion@5
|
||||
inputs:
|
||||
runtime: 'core'
|
||||
# configFilePath: 'GitVersion.yml'
|
||||
|
||||
- script: echo %Action%%BuildVersion%
|
||||
displayName: 'Set build version'
|
||||
env:
|
||||
Action: '##vso[build.updatebuildnumber]'
|
||||
BuildVersion: $(GitVersion.NugetVersionV2)
|
||||
|
||||
- task: NuGetCommand@2
|
||||
displayName: 'NuGet pack'
|
||||
inputs:
|
||||
command: 'pack'
|
||||
packagesToPack: 'nuget/*.nuspec'
|
||||
versioningScheme: 'off'
|
||||
buildProperties: 'VERSION=$(build.buildNumber)'
|
||||
|
||||
- task: NuGetCommand@2
|
||||
displayName: 'NuGet push'
|
||||
inputs:
|
||||
command: 'push'
|
||||
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg;build/*.nupkg;!build/*symbols.nupkg'
|
||||
nuGetFeedType: 'external'
|
||||
publishFeedCredentials: 'sqs-nuget'
|
||||
# condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
|
Loading…
Reference in New Issue