File tree 3 files changed +38
-8
lines changed
3 files changed +38
-8
lines changed Original file line number Diff line number Diff line change 17
17
- RUSTFLAGS="-C link-dead-code"
18
18
- CARGO_MAKE_RUN_CODECOV=true
19
19
20
+ before_script :
21
+ - |
22
+ if [ "$TRAVIS_OS_NAME" = 'windows' ]; then
23
+ powershell -executionpolicy bypass -file _build/cargo-make.ps1 -version "0.15.3" -target "x86_64-pc-windows-msvc"
24
+ fi
25
+ - |
26
+ if [ "$TRAVIS_OS_NAME" = 'linux' ]; then
27
+ _build/cargo-make.sh "0.15.3" "x86_64-unknown-linux-musl"
28
+ fi
29
+ - |
30
+ if [ "$TRAVIS_OS_NAME" = 'osx' ]; then
31
+ _build/cargo-make.sh "0.15.3" "x86_64-apple-darwin"
32
+ fi
20
33
script :
21
- - cargo install --debug cargo-make -f
22
34
- cargo make workspace-ci-flow --no-workspace
23
35
24
36
before_deploy :
Original file line number Diff line number Diff line change @@ -36,19 +36,16 @@ jobs:
36
36
displayName: Query rust and cargo versions
37
37
- ${{ if eq(parameters.name, 'Linux') }} :
38
38
# Linux.
39
- - script : _build/cargo-make.sh "0.15.1 " "x86_64-unknown-linux-musl"
39
+ - script : _build/cargo-make.sh "0.15.3 " "x86_64-unknown-linux-musl"
40
40
displayName : Install cargo-make binary
41
41
- ${{ if eq(parameters.name, 'macOS') }} :
42
42
# Mac.
43
- - script : _build/cargo-make.sh "0.15.1 " "x86_64-apple-darwin"
43
+ - script : _build/cargo-make.sh "0.15.3 " "x86_64-apple-darwin"
44
44
displayName : Install cargo-make binary
45
45
- ${{ if eq(parameters.name, 'Windows') }} :
46
46
# Windows.
47
- - script : |
48
- # TODO: There is no build of cargo-make for windows yet.
49
- cargo install -f cargo-make --vers 0.15.1
50
- echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
51
- displayName: Install cargo-make
47
+ - script : powershell -executionpolicy bypass -file _build/cargo-make.ps1 -version "0.15.3" -target "x86_64-pc-windows-msvc"
48
+ displayName : Install cargo-make binary
52
49
- script : cargo make workspace-ci-flow --no-workspace
53
50
env : { CARGO_MAKE_RUN_CODECOV: true }
54
51
displayName : Build and run tests
Original file line number Diff line number Diff line change
1
+ param (
2
+ [Parameter (Mandatory = $true )][string ]$version ,
3
+ [Parameter (Mandatory = $true )][string ]$target
4
+ )
5
+
6
+ # Location to put cargo-make binary.
7
+ $cargobindir = " $env: userprofile \.cargo\bin"
8
+
9
+ # Location to stage downloaded zip file.
10
+ $zipfile = " $env: temp \cargo-make.zip"
11
+
12
+ $url = " https://github.com/sagiegurari/cargo-make/releases/download/${version} /cargo-make-v${version} -${target} .zip"
13
+
14
+ # Download the zip file.
15
+ Invoke-WebRequest - Uri $url - OutFile $zipfile
16
+
17
+ # Extract the binary to the correct location.
18
+ Expand-Archive - Path $zipfile - DestinationPath $cargobindir
19
+
20
+ # Tell azure pipelines the PATH has changed for future steps.
21
+ Write-Host " ##vso[task.setvariable variable=PATH;]%PATH%;$cargobindir "
You can’t perform that action at this time.
0 commit comments