mirror of
https://github.com/chmln/sd
synced 2024-11-22 03:03:03 +00:00
3cd464cce9
* Update azure pipeline config * iterate * Depend on master * Depend on master: take 2 * Depend on master: take 3 * cargo fmt * Remove min rust version check * Attempt to remove MSRV test * Attempt to remove MSRV test: fix jobs template path * Attempt to remove MSRV test: fix jobs template path * Attempt to remove MSRV test: fix jobs template path
35 lines
872 B
YAML
35 lines
872 B
YAML
trigger:
|
|
branches:
|
|
include: ['*']
|
|
tags:
|
|
include: ['*']
|
|
|
|
resources:
|
|
repositories:
|
|
- repository: rust_pipelines
|
|
type: github
|
|
name: xoac/rust-azure-pipelines
|
|
ref: refs/heads/master
|
|
endpoint: githubConnection
|
|
stages:
|
|
- stage: test
|
|
displayName: "Test"
|
|
jobs:
|
|
- template: ci/jobs/cargo-test.yaml@rust_pipelines
|
|
|
|
- stage: build
|
|
displayName: "Build"
|
|
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
|
|
dependsOn:
|
|
- test
|
|
|
|
# Deploy binaries to github only if tags start with `v` for example `v0.1.5`
|
|
- stage: deploy
|
|
displayName: "Deploy"
|
|
dependsOn:
|
|
- build
|
|
jobs:
|
|
- template: ci/scenarios/github/release.yml@rust_pipelines
|
|
parameters:
|
|
job_condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
|
|
gitHubConnection: githubConnection
|