mirror of
https://github.com/chmln/sd
synced 2024-11-25 12:40:16 +00:00
bff7b17392
resolves #56
62 lines
1.3 KiB
YAML
62 lines
1.3 KiB
YAML
trigger:
|
|
branches:
|
|
include: ['*']
|
|
tags:
|
|
include: ['*']
|
|
|
|
resources:
|
|
repositories:
|
|
- repository: templates
|
|
type: github
|
|
name: xoac/rust-azure-pipelines
|
|
ref: refs/tags/v0.0.2
|
|
endpoint: githubConnection
|
|
|
|
jobs:
|
|
# This represents the minimum Rust version supported.
|
|
# Tests are not run as tests may require newer versions of rust.
|
|
- template: ci/cargo-check.yml@templates
|
|
parameters:
|
|
name: minrust
|
|
rust_version: 1.31.0 # The 2018 edition
|
|
displayName: Check rust min ver
|
|
|
|
################
|
|
# Test stage #
|
|
###############
|
|
|
|
# Test stable
|
|
- template: ci/test.yml@templates
|
|
parameters:
|
|
name: cargo_test_stable
|
|
displayName: Cargo test
|
|
cross: true # Test on Windows and macOS
|
|
|
|
###################
|
|
# DEPLOY PART #
|
|
###################
|
|
|
|
# Release binary
|
|
- template: ci/github-release.yml@templates
|
|
parameters:
|
|
name: github_release
|
|
dependsOn:
|
|
- minrust
|
|
- cargo_test_stable
|
|
rust_version: stable
|
|
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
|
|
contents: |
|
|
*
|
|
!*.rlib
|
|
!*.d
|
|
!.*
|
|
targets:
|
|
- x86_64-unknown-linux-gnu
|
|
- x86_64-unknown-linux-musl
|
|
- x86_64-pc-windows-gnu
|
|
- x86_64-pc-windows-msvc
|
|
- x86_64-apple-darwin
|
|
github:
|
|
gitHubConnection: githubConnection
|
|
repositoryName: chmln/sd
|
|
|