From 333a6bef0edbeded5098b1722f9fdd734f2b7544 Mon Sep 17 00:00:00 2001 From: Roberto Huertas Date: Sat, 3 Nov 2018 04:33:22 +0100 Subject: [PATCH] fix(ci): add build for osx and windows in azure --- azure-pipelines.yml | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8e908d1..d5750b7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -40,11 +40,11 @@ jobs: cargo build --release displayName: 'Build' - # - task: PublishBuildArtifacts@1 - # displayName: 'Publish Artifact: microserver' - # inputs: - # PathtoPublish: '$(System.DefaultWorkingDirectory)/target/release/microserver' - # ArtifactName: microserver-linux + - task: PublishBuildArtifacts@1 + displayName: 'Publish Artifact: microserver' + inputs: + PathtoPublish: '$(System.DefaultWorkingDirectory)/target/release/microserver' + ArtifactName: microserver-linux - job: macOS displayName: OSX build @@ -77,11 +77,16 @@ jobs: cargo clippy --all -- -D clippy::pedantic -A clippy::non-ascii-literal displayName: 'Cargo clippy' - # - task: PublishBuildArtifacts@1 - # displayName: 'Publish Artifact: microserver' - # inputs: - # PathtoPublish: '$(System.DefaultWorkingDirectory)/target/release/microserver' - # ArtifactName: microserver-osx + - script: | + export PATH=$HOME/.cargo/bin:$PATH + cargo build --release + displayName: 'Build' + + - task: PublishBuildArtifacts@1 + displayName: 'Publish Artifact: microserver' + inputs: + PathtoPublish: '$(System.DefaultWorkingDirectory)/target/release/microserver' + ArtifactName: microserver-osx - job: Windows displayName: Windows build @@ -114,9 +119,14 @@ jobs: SET PATH=%PATH%;%USERPROFILE%\.cargo\bin; cargo clippy --all -- -D clippy::pedantic -A clippy::non-ascii-literal displayName: 'Cargo clippy' + + - script: | + export PATH=$HOME/.cargo/bin:$PATH + cargo build --release + displayName: 'Build' - # - task: PublishBuildArtifacts@1 - # displayName: 'Publish Artifact: microserver' - # inputs: - # PathtoPublish: '$(System.DefaultWorkingDirectory)/target/release/microserver' - # ArtifactName: microserver-windows + - task: PublishBuildArtifacts@1 + displayName: 'Publish Artifact: microserver' + inputs: + PathtoPublish: '$(System.DefaultWorkingDirectory)/target/release/microserver' + ArtifactName: microserver-windows