Skip to content

Commit

Permalink
fix(ci): add build for osx and windows in azure
Browse files Browse the repository at this point in the history
  • Loading branch information
robertohuertasm committed Nov 3, 2018
1 parent c4dc992 commit 333a6be
Showing 1 changed file with 25 additions and 15 deletions.
40 changes: 25 additions & 15 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 333a6be

Please sign in to comment.