From da94d7bd0f81d1d3ed098af251b088361251b580 Mon Sep 17 00:00:00 2001 From: Abdulkareem Siddiq Date: Tue, 28 Sep 2021 19:49:07 -0700 Subject: [PATCH] Added the local pipeline and nuspec file --- nuget/SiddiqSoft.spdlog.nuspec | 45 +++++++++++++++++++++++++++ nuget/SiddiqSoft.spdlog.targets | 8 +++++ nuget/azure-pipelines.yml | 54 +++++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 nuget/SiddiqSoft.spdlog.nuspec create mode 100644 nuget/SiddiqSoft.spdlog.targets create mode 100644 nuget/azure-pipelines.yml diff --git a/nuget/SiddiqSoft.spdlog.nuspec b/nuget/SiddiqSoft.spdlog.nuspec new file mode 100644 index 00000000..5205b045 --- /dev/null +++ b/nuget/SiddiqSoft.spdlog.nuspec @@ -0,0 +1,45 @@ + + + + + + + SiddiqSoft.spdlog + $VERSION$ + Gabi Melman + Fast C++ logging library + logging spdlog cpp11 native nativepackage cpp + https://github.com/abdulkareem-siddiq/spdlog + true + MIT + + Copyright (c) 2016 Gabi Melman + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/nuget/SiddiqSoft.spdlog.targets b/nuget/SiddiqSoft.spdlog.targets new file mode 100644 index 00000000..ae59fb31 --- /dev/null +++ b/nuget/SiddiqSoft.spdlog.targets @@ -0,0 +1,8 @@ + + + + + $(MSBuildThisFileDirectory)include;%(AdditionalIncludeDirectories) + + + \ No newline at end of file diff --git a/nuget/azure-pipelines.yml b/nuget/azure-pipelines.yml new file mode 100644 index 00000000..8463988d --- /dev/null +++ b/nuget/azure-pipelines.yml @@ -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')) \ No newline at end of file