@@ -93,52 +93,42 @@ steps:
9393
9494- template : DownloadAzurePipelineArtifact.yml
9595 parameters :
96- task_display_name : Download Cargo Make (Windows)
96+ task_display_name : Download Cargo Binstall (Windows)
9797 artifact_name : Binaries
98- azure_pipeline_def_id : 166
99- file_pattern : " **/cargo-make .exe"
98+ azure_pipeline_def_id : 169
99+ file_pattern : " **/cargo-binstall .exe"
100100 target_dir : " $(cargoBinPath)"
101101 target_os : " Windows_NT"
102102 work_dir : " $(Agent.TempDirectory)"
103103
104104- template : DownloadAzurePipelineArtifact.yml
105105 parameters :
106- task_display_name : Download Cargo Make (Linux)
106+ task_display_name : Download Cargo Binstall (Linux)
107107 artifact_name : Binaries
108- azure_pipeline_def_id : 166
109- file_pattern : " **/cargo-make "
108+ azure_pipeline_def_id : 169
109+ file_pattern : " **/cargo-binstall "
110110 target_dir : " $(Agent.TempDirectory)"
111111 target_os : " Linux"
112112 work_dir : " $(Agent.TempDirectory)"
113+
113114- script : |
114- cp $AGENT_TEMPDIRECTORY/cargo-make /.cargo/bin
115- displayName : Copy cargo-make
115+ cp $AGENT_TEMPDIRECTORY/cargo-binstall /.cargo/bin
116+ displayName : Copy cargo-binstall
116117 condition : and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
117118
118- - template : DownloadAzurePipelineArtifact.yml
119- parameters :
120- task_display_name : Download Cargo Tarpaulin (Windows)
121- artifact_name : Binaries
122- azure_pipeline_def_id : 167
123- file_pattern : " **/cargo-tarpaulin.exe"
124- target_dir : " $(cargoBinPath)"
125- target_os : " Windows_NT"
126- work_dir : " $(Agent.TempDirectory)"
127-
128- - template : DownloadAzurePipelineArtifact.yml
129- parameters :
130- task_display_name : Download Cargo Tarpaulin (Linux)
131- artifact_name : Binaries
132- azure_pipeline_def_id : 167
133- file_pattern : " **/cargo-tarpaulin"
134- target_dir : " $(Agent.TempDirectory)"
135- target_os : " Linux"
136- work_dir : " $(Agent.TempDirectory)"
137119- script : |
138- cp $AGENT_TEMPDIRECTORY/cargo-tarpaulin /.cargo/bin
139- displayName : Copy cargo-tarpaulin
120+ sudo chmod +x /.cargo/bin/cargo-binstall
121+ displayName : Make cargo-binstall executable
140122 condition : and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
141123
124+ - script : |
125+ cargo binstall -y cargo-make --version {{ sync_version.cargo_make_version }}
126+ displayName : Install cargo-make
127+
128+ - script : |
129+ cargo binstall -y cargo-tarpaulin --version {{ sync_version.cargo_tarpaulin_version }}
130+ displayName : Install cargo-tarpaulin
131+
142132- script : rustup component add rustfmt rust-src --toolchain {{ sync_version.rust_toolchain }}-$(rust_target_triple)
143133 displayName : rustup add rust-src
144134 condition : and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
0 commit comments