Skip to content

Commit 333a6be

Browse files
fix(ci): add build for osx and windows in azure
1 parent c4dc992 commit 333a6be

File tree

1 file changed

+25
-15
lines changed

1 file changed

+25
-15
lines changed

azure-pipelines.yml

+25-15
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ jobs:
4040
cargo build --release
4141
displayName: 'Build'
4242
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
4848

4949
- job: macOS
5050
displayName: OSX build
@@ -77,11 +77,16 @@ jobs:
7777
cargo clippy --all -- -D clippy::pedantic -A clippy::non-ascii-literal
7878
displayName: 'Cargo clippy'
7979
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
8590

8691
- job: Windows
8792
displayName: Windows build
@@ -114,9 +119,14 @@ jobs:
114119
SET PATH=%PATH%;%USERPROFILE%\.cargo\bin;
115120
cargo clippy --all -- -D clippy::pedantic -A clippy::non-ascii-literal
116121
displayName: 'Cargo clippy'
122+
123+
- script: |
124+
export PATH=$HOME/.cargo/bin:$PATH
125+
cargo build --release
126+
displayName: 'Build'
117127
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

Comments
 (0)