This repository has been archived by the owner on Feb 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use Azure Pipelines for Windows builds (#105)
* use containers in Azure Pipelines * -nanoserver-1803 * which dotnet on win1803? * build on Windows * powershell * add NuGet.Config
- Loading branch information
Showing
3 changed files
with
37 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<clear /> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | ||
</packageSources> | ||
</configuration> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,30 @@ | ||
pool: | ||
vmImage: Ubuntu-16.04 | ||
steps: | ||
- script: | | ||
set -e | ||
./build.sh | ||
./build-checksum.sh | ||
- task: CopyFiles@2 | ||
inputs: | ||
contents: bin/*.nupkg | ||
flattenFolders: true | ||
targetFolder: $(Build.ArtifactStagingDirectory) | ||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
pathtoPublish: $(Build.ArtifactStagingDirectory) | ||
artifactName: nuget | ||
jobs: | ||
|
||
- job: Windows | ||
pool: | ||
vmImage: win1803 | ||
# container: 'mcr.microsoft.com/dotnet/core/sdk:2.2.105-nanoserver-1803' | ||
steps: | ||
- powershell: | | ||
dotnet --version | ||
.\build.ps1 | ||
if ($lastexitcode -ne 0){ exit $lastexitcode } | ||
- job: Linux | ||
pool: | ||
vmImage: Ubuntu-16.04 | ||
container: mcr.microsoft.com/dotnet/core/sdk:2.2.105 | ||
steps: | ||
- script: | | ||
set -e | ||
./build.sh | ||
./build-checksum.sh | ||
- task: CopyFiles@2 | ||
inputs: | ||
contents: bin/*.nupkg | ||
flattenFolders: true | ||
targetFolder: $(Build.ArtifactStagingDirectory) | ||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
pathtoPublish: $(Build.ArtifactStagingDirectory) | ||
artifactName: nuget |