Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Commit

Permalink
use Azure Pipelines for Windows builds (#105)
Browse files Browse the repository at this point in the history
* use containers in Azure Pipelines

* -nanoserver-1803

* which dotnet on win1803?

* build on Windows

* powershell

* add NuGet.Config
  • Loading branch information
ctaggart authored Mar 29, 2019
1 parent ba983b6 commit ad44274
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 24 deletions.
7 changes: 7 additions & 0 deletions NuGet.Config
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>
8 changes: 0 additions & 8 deletions appveyor.yml

This file was deleted.

46 changes: 30 additions & 16 deletions azure-pipelines.yml
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

0 comments on commit ad44274

Please sign in to comment.