@@ -40,11 +40,11 @@ jobs:
40
40
cargo build --release
41
41
displayName: 'Build'
42
42
43
- # - task: PublishBuildArtifacts@1
44
- # displayName: 'Publish Artifact: microserver'
45
- # inputs:
46
- # PathtoPublish: '$(System.DefaultWorkingDirectory)/target/release/microserver'
47
- # ArtifactName: microserver-linux
43
+ - task : PublishBuildArtifacts@1
44
+ displayName : ' Publish Artifact: microserver'
45
+ inputs :
46
+ PathtoPublish : ' $(System.DefaultWorkingDirectory)/target/release/microserver'
47
+ ArtifactName : microserver-linux
48
48
49
49
- job : macOS
50
50
displayName : OSX build
@@ -77,11 +77,16 @@ jobs:
77
77
cargo clippy --all -- -D clippy::pedantic -A clippy::non-ascii-literal
78
78
displayName: 'Cargo clippy'
79
79
80
- # - task: PublishBuildArtifacts@1
81
- # displayName: 'Publish Artifact: microserver'
82
- # inputs:
83
- # PathtoPublish: '$(System.DefaultWorkingDirectory)/target/release/microserver'
84
- # ArtifactName: microserver-osx
80
+ - script : |
81
+ export PATH=$HOME/.cargo/bin:$PATH
82
+ cargo build --release
83
+ displayName: 'Build'
84
+
85
+ - task : PublishBuildArtifacts@1
86
+ displayName : ' Publish Artifact: microserver'
87
+ inputs :
88
+ PathtoPublish : ' $(System.DefaultWorkingDirectory)/target/release/microserver'
89
+ ArtifactName : microserver-osx
85
90
86
91
- job : Windows
87
92
displayName : Windows build
@@ -114,9 +119,14 @@ jobs:
114
119
SET PATH=%PATH%;%USERPROFILE%\.cargo\bin;
115
120
cargo clippy --all -- -D clippy::pedantic -A clippy::non-ascii-literal
116
121
displayName: 'Cargo clippy'
122
+
123
+ - script : |
124
+ export PATH=$HOME/.cargo/bin:$PATH
125
+ cargo build --release
126
+ displayName: 'Build'
117
127
118
- # - task: PublishBuildArtifacts@1
119
- # displayName: 'Publish Artifact: microserver'
120
- # inputs:
121
- # PathtoPublish: '$(System.DefaultWorkingDirectory)/target/release/microserver'
122
- # ArtifactName: microserver-windows
128
+ - task : PublishBuildArtifacts@1
129
+ displayName : ' Publish Artifact: microserver'
130
+ inputs :
131
+ PathtoPublish : ' $(System.DefaultWorkingDirectory)/target/release/microserver'
132
+ ArtifactName : microserver-windows
0 commit comments