Skip to content

Commit 6cffc7a

Browse files
committed
set -euxo pipefail does not work on windows
See microsoft/azure-pipelines-yaml#135
1 parent 817ab6d commit 6cffc7a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ steps:
5050
displayName: 'Install Rust (Linux/macOS)'
5151

5252
- script: |
53-
set -euxo pipefail
5453
curl -sSf -o rustup-init.exe https://win.rustup.rs
5554
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
5655
echo ##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin
5756
condition: eq( variables['Agent.OS'], 'Windows_NT' )
57+
failOnStderr: true
5858
displayName: 'Install Rust (Windows)'
5959

6060
- script: |
@@ -66,10 +66,7 @@ steps:
6666
- script: rustup component add rust-src
6767
displayName: 'Install Rustup Src Component'
6868

69-
- script: |
70-
set -euxo pipefail
71-
cargo install cargo-xbuild --debug
72-
cargo install bootimage --debug
69+
- script: cargo install cargo-xbuild bootimage --debug
7370
displayName: 'Install cargo-xbuild and bootimage'
7471

7572
- script: sudo apt install qemu-system-x86
@@ -86,12 +83,12 @@ steps:
8683
displayName: 'Install QEMU (macOS)'
8784

8885
- script: |
89-
set -euxo pipefail
9086
choco install qemu --limit-output --no-progress
9187
echo ##vso[task.setvariable variable=PATH;]%PATH%;C:\Program Files\qemu
9288
set PATH=%PATH%;C:\Program Files\qemu
9389
qemu-system-x86_64 --version
9490
condition: eq( variables['Agent.OS'], 'Windows_NT' )
91+
failOnStderr: true
9592
displayName: 'Install QEMU (Windows)'
9693

9794
- script: cargo xbuild --target x86_64-example-kernel.json

0 commit comments

Comments
 (0)