mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 00:51:11 -05:00
chore(CI): Fix indentation
This commit is contained in:
parent
8811ebf75a
commit
2d2cbe166a
1 changed files with 81 additions and 81 deletions
|
@ -34,87 +34,87 @@ stages:
|
||||||
$(Build.StagingDirectory)/tools/committed HEAD~..HEAD^2 --no-merge-commit -vv
|
$(Build.StagingDirectory)/tools/committed HEAD~..HEAD^2 --no-merge-commit -vv
|
||||||
displayName: Committed
|
displayName: Committed
|
||||||
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
|
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
|
||||||
- stage: Release
|
- stage: Release
|
||||||
dependsOn: test
|
dependsOn: test
|
||||||
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
|
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
|
||||||
jobs:
|
jobs:
|
||||||
- job:
|
- job:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
windows:
|
windows:
|
||||||
imageName: 'vs2017-win2016'
|
imageName: 'vs2017-win2016'
|
||||||
target: 'x86_64-pc-windows-msvc'
|
target: 'x86_64-pc-windows-msvc'
|
||||||
crate_name: typos
|
crate_name: typos
|
||||||
mac:
|
mac:
|
||||||
imageName: 'macos-10.14'
|
imageName: 'macos-10.14'
|
||||||
target: 'x86_64-apple-darwin'
|
target: 'x86_64-apple-darwin'
|
||||||
crate_name: typos
|
crate_name: typos
|
||||||
linux:
|
linux:
|
||||||
imageName: 'ubuntu-16.04'
|
imageName: 'ubuntu-16.04'
|
||||||
target: 'x86_64-unknown-linux-gnu'
|
target: 'x86_64-unknown-linux-gnu'
|
||||||
crate_name: typos
|
crate_name: typos
|
||||||
pool:
|
pool:
|
||||||
vmImage: $(imageName)
|
vmImage: $(imageName)
|
||||||
steps:
|
steps:
|
||||||
- template: azure/install-rust.yml@templates
|
- template: azure/install-rust.yml@templates
|
||||||
- script: |
|
- script: |
|
||||||
cargo rustc --target $(TARGET) --release --bin $(CRATE_NAME)-cli -- -C lto
|
cargo rustc --target $(TARGET) --release --bin $(CRATE_NAME)-cli -- -C lto
|
||||||
displayName: Build
|
displayName: Build
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
displayName: Stage assets
|
displayName: Stage assets
|
||||||
condition: ne( variables['Agent.OS'], 'Windows_NT' )
|
condition: ne( variables['Agent.OS'], 'Windows_NT' )
|
||||||
inputs:
|
inputs:
|
||||||
sourceFolder: '$(Build.SourcesDirectory)/target/$(TARGET)/release'
|
sourceFolder: '$(Build.SourcesDirectory)/target/$(TARGET)/release'
|
||||||
contents: $(crate_name)
|
contents: $(crate_name)
|
||||||
targetFolder: '$(Build.BinariesDirectory)/'
|
targetFolder: '$(Build.BinariesDirectory)/'
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
displayName: Stage assets on Windows
|
displayName: Stage assets on Windows
|
||||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||||
inputs:
|
inputs:
|
||||||
sourceFolder: '$(Build.SourcesDirectory)/target/$(TARGET)/release'
|
sourceFolder: '$(Build.SourcesDirectory)/target/$(TARGET)/release'
|
||||||
contents: $(crate_name).exe
|
contents: $(crate_name).exe
|
||||||
targetFolder: '$(Build.BinariesDirectory)/'
|
targetFolder: '$(Build.BinariesDirectory)/'
|
||||||
- task: ArchiveFiles@2
|
- task: ArchiveFiles@2
|
||||||
displayName: Tarball assets
|
displayName: Tarball assets
|
||||||
condition: ne( variables['Agent.OS'], 'Windows_NT' )
|
condition: ne( variables['Agent.OS'], 'Windows_NT' )
|
||||||
inputs:
|
inputs:
|
||||||
rootFolderOrFile: '$(Build.BinariesDirectory)/$(crate_name)'
|
rootFolderOrFile: '$(Build.BinariesDirectory)/$(crate_name)'
|
||||||
archiveType: 'tar'
|
archiveType: 'tar'
|
||||||
tarCompression: 'gz'
|
tarCompression: 'gz'
|
||||||
archiveFile: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).tar.gz'
|
archiveFile: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).tar.gz'
|
||||||
- task: GithubRelease@0
|
- task: GithubRelease@0
|
||||||
condition: ne( variables['Agent.OS'], 'Windows_NT' )
|
condition: ne( variables['Agent.OS'], 'Windows_NT' )
|
||||||
inputs:
|
inputs:
|
||||||
gitHubConnection: 'crate-ci-token'
|
gitHubConnection: 'crate-ci-token'
|
||||||
repositoryName: 'crate-ci/typos'
|
repositoryName: 'crate-ci/typos'
|
||||||
action: 'edit'
|
action: 'edit'
|
||||||
target: '$(build.sourceVersion)'
|
target: '$(build.sourceVersion)'
|
||||||
tagSource: 'manual'
|
tagSource: 'manual'
|
||||||
tag: '$(Build.SourceBranchName)'
|
tag: '$(Build.SourceBranchName)'
|
||||||
assets: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).tar.gz'
|
assets: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).tar.gz'
|
||||||
title: '$(Build.SourceBranchName)'
|
title: '$(Build.SourceBranchName)'
|
||||||
assetUploadMode: 'replace'
|
assetUploadMode: 'replace'
|
||||||
addChangeLog: true
|
addChangeLog: true
|
||||||
- task: ArchiveFiles@2
|
- task: ArchiveFiles@2
|
||||||
displayName: Zip assets
|
displayName: Zip assets
|
||||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||||
inputs:
|
inputs:
|
||||||
rootFolderOrFile: '$(Build.BinariesDirectory)/$(crate_name).exe'
|
rootFolderOrFile: '$(Build.BinariesDirectory)/$(crate_name).exe'
|
||||||
archiveType: 'zip'
|
archiveType: 'zip'
|
||||||
archiveFile: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).zip'
|
archiveFile: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).zip'
|
||||||
- task: GithubRelease@0
|
- task: GithubRelease@0
|
||||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||||
inputs:
|
inputs:
|
||||||
gitHubConnection: 'crate-ci-token'
|
gitHubConnection: 'crate-ci-token'
|
||||||
repositoryName: 'crate-ci/typos'
|
repositoryName: 'crate-ci/typos'
|
||||||
action: 'edit'
|
action: 'edit'
|
||||||
target: '$(build.sourceVersion)'
|
target: '$(build.sourceVersion)'
|
||||||
tagSource: 'manual'
|
tagSource: 'manual'
|
||||||
tag: '$(Build.SourceBranchName)'
|
tag: '$(Build.SourceBranchName)'
|
||||||
assets: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).zip'
|
assets: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).zip'
|
||||||
title: '$(Build.SourceBranchName)'
|
title: '$(Build.SourceBranchName)'
|
||||||
assetUploadMode: 'replace'
|
assetUploadMode: 'replace'
|
||||||
addChangeLog: true
|
addChangeLog: true
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
repositories:
|
repositories:
|
||||||
|
|
Loading…
Reference in a new issue