mirror of https://github.com/ctz/rustls
Remove azure and improve github actions
Maintaining two of these is pretty annoying, and github actions seems to be pretty good quality.
This commit is contained in:
parent
8ebe493675
commit
a5b3e35f45
|
@ -1,62 +0,0 @@
|
|||
variables:
|
||||
clippy_toolchain: 1.47.0
|
||||
minimum_toolchain: 1.47.0
|
||||
|
||||
resources:
|
||||
repositories:
|
||||
- repository: templates
|
||||
type: github
|
||||
name: crate-ci/resources
|
||||
endpoint: ctz
|
||||
|
||||
jobs:
|
||||
- template: az-pipeline/unstable/clippy.yml@templates
|
||||
parameters:
|
||||
rustup_toolchain: ${{ variables.clippy_toolchain }}
|
||||
- job: Windows
|
||||
pool:
|
||||
vmImage: windows-2019
|
||||
steps:
|
||||
- template: admin/pipelines/rustup.yml
|
||||
- template: admin/pipelines/cargo-steps.yml
|
||||
- template: admin/pipelines/bench.yml
|
||||
- job: MacOS
|
||||
pool:
|
||||
vmImage: macOS-10.15
|
||||
steps:
|
||||
- template: admin/pipelines/rustup.yml
|
||||
- template: admin/pipelines/cargo-steps.yml
|
||||
- template: admin/pipelines/bench.yml
|
||||
- job: Linux
|
||||
pool:
|
||||
vmImage: ubuntu-18.04
|
||||
strategy:
|
||||
matrix:
|
||||
stable:
|
||||
rustup_toolchain: stable
|
||||
beta:
|
||||
rustup_toolchain: beta
|
||||
nightly:
|
||||
rustup_toolchain: nightly
|
||||
minimum:
|
||||
rustup_toolchain: ${{ variables.minimum_toolchain }}
|
||||
steps:
|
||||
- template: admin/pipelines/ubuntu.yml
|
||||
- template: admin/pipelines/rustup.yml
|
||||
parameters:
|
||||
rustup_toolchain: $(rustup_toolchain)
|
||||
- template: admin/pipelines/cargo-steps.yml
|
||||
- template: admin/pipelines/bench.yml
|
||||
- template: admin/pipelines/bogo.yml
|
||||
|
||||
# Check that the minimum versions specified in Cargo.toml
|
||||
# do in fact build.
|
||||
- job: MinimalVersions
|
||||
pool:
|
||||
vmImage: ubuntu-18.04
|
||||
steps:
|
||||
- template: admin/pipelines/ubuntu.yml
|
||||
- template: admin/pipelines/rustup.yml
|
||||
parameters:
|
||||
rustup_toolchain: nightly
|
||||
- template: admin/pipelines/min-versions.yml
|
|
@ -54,6 +54,47 @@ jobs:
|
|||
- name: cargo test (release; no run)
|
||||
run: cargo test --release --no-run
|
||||
|
||||
|
||||
bogo:
|
||||
name: BoGo test suite
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install stable toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
|
||||
- name: Install golang toolchain
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: "1.14"
|
||||
|
||||
- name: Run test suite
|
||||
working-directory: bogo
|
||||
run: ./runme
|
||||
|
||||
|
||||
benchmarks:
|
||||
name: Smoke-test benchmarks
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install stable toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
|
||||
- name: Smoke-test benchmark program
|
||||
run: cargo run --release --example bench
|
||||
|
||||
|
||||
coverage:
|
||||
name: Measure coverage
|
||||
runs-on: ubuntu-18.04
|
||||
|
@ -94,6 +135,7 @@ jobs:
|
|||
file: final.info
|
||||
fail_ci_if_error: false
|
||||
|
||||
|
||||
minver:
|
||||
name: Check minimum versions
|
||||
runs-on: ubuntu-18.04
|
||||
|
|
|
@ -14,7 +14,6 @@ expected. [Here's what I'm working on now](https://github.com/ctz/rustls/projec
|
|||
If you'd like to help out, please see [CONTRIBUTING.md](CONTRIBUTING.md).
|
||||
|
||||
[![Build Status](https://github.com/ctz/rustls/workflows/rustls/badge.svg)](https://github.com/ctz/rustls/actions)
|
||||
[![Build Status](https://dev.azure.com/ctz99/ctz/_apis/build/status/ctz.rustls?branchName=main)](https://dev.azure.com/ctz99/ctz/_build/latest?definitionId=3&branchName=main)
|
||||
[![Coverage Status (codecov.io)](https://codecov.io/gh/ctz/rustls/branch/main/graph/badge.svg)](https://codecov.io/gh/ctz/rustls/)
|
||||
[![Documentation](https://docs.rs/rustls/badge.svg)](https://docs.rs/rustls/)
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
steps:
|
||||
- bash: target/release/examples/bench
|
||||
displayName: "run benchmarks"
|
|
@ -1,4 +0,0 @@
|
|||
steps:
|
||||
- script: ./runme
|
||||
displayName: "run bogo"
|
||||
workingDirectory: bogo
|
|
@ -1,17 +0,0 @@
|
|||
steps:
|
||||
- script: cargo build
|
||||
displayName: "cargo build (debug; default features)"
|
||||
- script: cargo test
|
||||
displayName: "cargo test (debug; default features)"
|
||||
env: { "RUST_BACKTRACE": "1" }
|
||||
- script: cargo test --all-features
|
||||
displayName: "cargo test (debug; all features)"
|
||||
env: { "RUST_BACKTRACE": "1" }
|
||||
- script: cargo build --no-default-features
|
||||
displayName: "cargo build (debug; no default features; no run)"
|
||||
workingDirectory: rustls
|
||||
- script: cargo test --no-default-features --no-run
|
||||
displayName: "cargo test (debug; no default features; no run)"
|
||||
workingDirectory: rustls
|
||||
- script: cargo test --release --no-run
|
||||
displayName: "cargo test (release; no run)"
|
|
@ -1,3 +0,0 @@
|
|||
steps:
|
||||
- script: cargo -Z minimal-versions test --all-features
|
||||
displayName: "rustls cargo test (debug; all features)"
|
|
@ -1,38 +0,0 @@
|
|||
parameters:
|
||||
rustup_toolchain: 'stable'
|
||||
rustup_target: ''
|
||||
components: []
|
||||
|
||||
steps:
|
||||
# Linux and macOS.
|
||||
- script: |
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none
|
||||
export PATH=$PATH:$HOME/.cargo/bin
|
||||
rustup default ${{ parameters.rustup_toolchain }}
|
||||
rustup update
|
||||
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
|
||||
condition: ne( variables['Agent.OS'], 'Windows_NT' )
|
||||
displayName: Install rust
|
||||
# Windows.
|
||||
- script: |
|
||||
curl -sSf -o rustup-init.exe https://win.rustup.rs
|
||||
rustup-init.exe -y --default-toolchain none
|
||||
set PATH=%PATH%;%USERPROFILE%\.cargo\bin
|
||||
rustup default ${{ parameters.rustup_toolchain }}
|
||||
rustup update
|
||||
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
|
||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||
displayName: Install rust (windows)
|
||||
# All platforms.
|
||||
- script: |
|
||||
rustc -Vv
|
||||
cargo -V
|
||||
displayName: Query rust and cargo versions
|
||||
- ${{ if ne(parameters.rustup_target, '') }}:
|
||||
- script: |
|
||||
rustup target add ${{ parameters.rustup_target }}
|
||||
displayName: Install support for ${{ parameters.rustup_target }}
|
||||
- ${{ each component in parameters.components }}:
|
||||
- script: |
|
||||
rustup component add ${{ component }}
|
||||
displayName: Install ${{ component }}
|
|
@ -1,3 +0,0 @@
|
|||
steps:
|
||||
- script: sudo apt-get install build-essential curl
|
||||
displayName: "install dev tools"
|
Loading…
Reference in New Issue