Skip to content

Commit

Permalink
[#180458613] Fix pipeline (#2)
Browse files Browse the repository at this point in the history
* [#180458613] Fix pipeline

* [#180458613] Remove Audit pipeline step
  • Loading branch information
dennis-kuypers authored Dec 1, 2021
1 parent 5fbe1c0 commit 473645e
Showing 1 changed file with 29 additions and 23 deletions.
52 changes: 29 additions & 23 deletions .ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,29 @@ stages:
- script: make fmt-check
displayName: Run Fmt

- job: Audit
strategy:
matrix:
linux-stable:
imageName: ${{ variables.linux_image_name }}
rustup_toolchain: stable
pool:
vmImage: $(imageName)
# Let's use this image, because it has cargo audit already installed.
container:
image: ekidd/rust-musl-builder:$(rustup_toolchain)
# Required, because Azure is going to add a user which requires root privileges
options: --user 0:0
steps:
# Azure is not using the designated user of the image that has been configured to execute Rust
- script: |
cp -r /home/rust/.cargo /home/rust/.rustup $HOME
displayName: Prepare Container
- template: templates/version_information.yml
- script: make audit
displayName: Run Cargo Audit
# - job: Audit
# strategy:
# matrix:
# linux-stable:
# imageName: ${{ variables.linux_image_name }}
# rustup_toolchain: stable
# pool:
# vmImage: $(imageName)
# # Let's use this image, because it has cargo audit already installed.
# container:
# image: ekidd/rust-musl-builder:$(rustup_toolchain)
# # Required, because Azure is going to add a user which requires root privileges
# options: --user 0:0
# steps:
# # Azure is not using the designated user of the image that has been configured to execute Rust
# - script: |
# cp -r /home/rust/.cargo $HOME
# # .rustup does not exist on newer builder images
# cp -r /home/rust/.rustup $HOME || true
# displayName: Prepare Container
# - template: templates/version_information.yml
# - script: make audit
# displayName: Run Cargo Audit

- job: Clippy
strategy:
Expand Down Expand Up @@ -105,7 +107,9 @@ stages:
- template: templates/install_dependencies.yml
# Azure is not using the designated user of the image that has been configured to execute Rust
- script: |
cp -r /home/rust/.cargo /home/rust/.rustup $HOME
cp -r /home/rust/.cargo $HOME
# .rustup does not exist on newer builder images
cp -r /home/rust/.rustup $HOME || true
displayName: Prepare Container
- template: templates/version_information.yml
- script: |
Expand All @@ -130,7 +134,9 @@ stages:
steps:
# Azure is not using the designated user of the image that has been configured to execute Rust
- script: |
cp -r /home/rust/.cargo /home/rust/.rustup $HOME
cp -r /home/rust/.cargo $HOME
# .rustup does not exist on newer builder images
cp -r /home/rust/.rustup $HOME || true
displayName: Prepare Container
- template: templates/version_information.yml
- script: |
Expand Down

0 comments on commit 473645e

Please sign in to comment.