mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 21:32:13 +03:00
add rustfmt and packaging steps to azure pipeline
This commit is contained in:
parent
59a42c3dd3
commit
7168450896
@ -1,10 +1,12 @@
|
|||||||
|
# A list of vmImage names can be found at:
|
||||||
|
# https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#use-a-microsoft-hosted-agent
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
windows-stable:
|
windows-stable:
|
||||||
imageName: 'vs2017-win2016'
|
imageName: 'vs2017-win2016'
|
||||||
rustup_toolchain: stable
|
rustup_toolchain: stable
|
||||||
mac-stable:
|
mac-stable:
|
||||||
imageName: 'macos-10.13'
|
imageName: 'macos-10.14'
|
||||||
rustup_toolchain: stable
|
rustup_toolchain: stable
|
||||||
linux-stable:
|
linux-stable:
|
||||||
imageName: 'ubuntu-16.04'
|
imageName: 'ubuntu-16.04'
|
||||||
@ -36,6 +38,7 @@ steps:
|
|||||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||||
- script: |
|
- script: |
|
||||||
rustup update
|
rustup update
|
||||||
|
rustup component add rustfmt
|
||||||
displayName: Update rust toolchains
|
displayName: Update rust toolchains
|
||||||
- script: |
|
- script: |
|
||||||
rustc -vV
|
rustc -vV
|
||||||
@ -49,4 +52,8 @@ steps:
|
|||||||
displayName: Cargo build
|
displayName: Cargo build
|
||||||
- script: cargo test --all
|
- script: cargo test --all
|
||||||
displayName: Cargo test
|
displayName: Cargo test
|
||||||
|
- script: cargo fmt --all -- --check
|
||||||
|
displayName: Run Rustfmt
|
||||||
|
- script: ci/deploy.sh
|
||||||
|
displayName: Packaging
|
||||||
|
condition: ne( variables['Agent.OS'], 'Windows_NT' )
|
||||||
|
Loading…
Reference in New Issue
Block a user