-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc93906
commit 904a600
Showing
6 changed files
with
116 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
steps: | ||
- script: | | ||
echo "No dependencies required for this crate." | ||
displayName: Install Dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
parameters: | ||
rustup_toolchain: stable | ||
|
||
steps: | ||
- script: | | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain ${{ parameters.rustup_toolchain }} | ||
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" | ||
displayName: Install rust ${{ parameters.rustup_toolchain }} | ||
- script: rustup default ${{ parameters.rustup_toolchain }} | ||
displayName: Setting rust default toolchain to ${{ parameters.rustup_toolchain }} | ||
- script: rustup component add clippy | ||
displayName: Install clippy | ||
- script: rustup component add rustfmt | ||
displayName: Install rustfmt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
steps: | ||
- download: current | ||
artifact: Cargo | ||
displayName: Restoring .cargo directory | ||
- publish: current | ||
artifact: Target | ||
displayName: Restoring target directory | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
steps: | ||
- publish: /home/vsts/.cargo | ||
artifact: Cargo | ||
displayName: Storing .cargo directory | ||
- publish: $(Build.SourcesDirectory)/target | ||
artifact: Target | ||
displayName: Storing target directory | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
steps: | ||
- script: | | ||
rustup --version | ||
rustup toolchain list | ||
rustc --version | ||
cargo --version | ||
cargo --list | ||
cargo clippy --version && echo "Clippy installed" | ||
cargo fmt --version && echo "Rustfmt installed" | ||
clang --version && echo "Clang installed" | ||
displayName: Gather Build Environment Information | ||