mirror of
https://github.com/openharmony/third_party_rust_mio.git
synced 2026-06-30 20:58:01 -04:00
Remove Azure pipeline CI
Moved to GitHub Actions.
This commit is contained in:
@@ -1,65 +0,0 @@
|
||||
trigger: ["master", "v0.6.x", "v0.7.x"]
|
||||
pr: ["master", "v0.6.x", "v0.7.x"]
|
||||
|
||||
jobs:
|
||||
# Check formatting
|
||||
- template: ci/azure-rustfmt.yml
|
||||
parameters:
|
||||
name: rustfmt
|
||||
|
||||
# Stable
|
||||
- template: ci/azure-test-stable.yml
|
||||
parameters:
|
||||
name: stable
|
||||
displayName: Test
|
||||
cross: true
|
||||
|
||||
# Stable --release
|
||||
- template: ci/azure-test-stable.yml
|
||||
parameters:
|
||||
name: stable_release
|
||||
displayName: Test --release
|
||||
cmd: test --release
|
||||
|
||||
# Nightly
|
||||
- template: ci/azure-test-stable.yml
|
||||
parameters:
|
||||
name: nightly
|
||||
displayName: Nightly
|
||||
# Pin nightly to avoid being impacted by breakage
|
||||
rust_version: nightly-2021-11-05
|
||||
benches: true
|
||||
|
||||
# This represents the minimum Rust version supported by
|
||||
# Mio. Updating this should be done in a dedicated PR.
|
||||
#
|
||||
# Tests are not run as tests may require newer versions of
|
||||
# rust.
|
||||
- template: ci/azure-test-stable.yml
|
||||
parameters:
|
||||
name: minrust
|
||||
displayName: Min Rust
|
||||
rust_version: 1.46.0
|
||||
cmd: check
|
||||
cross: true
|
||||
|
||||
- template: ci/azure-minimal-versions.yml
|
||||
parameters:
|
||||
name: minimal_versions
|
||||
|
||||
- template: ci/azure-clippy.yml
|
||||
parameters:
|
||||
name: clippy
|
||||
|
||||
- template: ci/azure-cross-compile.yml
|
||||
parameters:
|
||||
name: cross
|
||||
|
||||
- template: ci/azure-deploy-docs.yml
|
||||
parameters:
|
||||
dependsOn:
|
||||
# - rustfmt
|
||||
- stable
|
||||
- nightly
|
||||
- minrust
|
||||
- cross
|
||||
@@ -1,17 +0,0 @@
|
||||
jobs:
|
||||
- job: ${{ parameters.name }}
|
||||
displayName: Clippy
|
||||
|
||||
pool:
|
||||
vmImage: ubuntu-18.04
|
||||
|
||||
steps:
|
||||
- template: azure-install-rust.yml
|
||||
parameters:
|
||||
rust_version: stable
|
||||
|
||||
- script: rustup component add clippy
|
||||
displayName: "Add component"
|
||||
|
||||
- script: cargo clippy --all-targets --all-features -- -D warnings -A clippy::cognitive-complexity
|
||||
displayName: "Run Clippy"
|
||||
@@ -1,59 +0,0 @@
|
||||
parameters:
|
||||
vmImage: ubuntu-18.04
|
||||
|
||||
jobs:
|
||||
- job: ${{ parameters.name }}
|
||||
displayName: Cross
|
||||
strategy:
|
||||
matrix:
|
||||
iOS_64:
|
||||
vmImage: macOS-10.15
|
||||
target: x86_64-apple-ios
|
||||
|
||||
iOS_ARM64:
|
||||
vmImage: macOS-10.15
|
||||
target: aarch64-apple-ios
|
||||
|
||||
Android_ARM:
|
||||
vmImage: ubuntu-18.04
|
||||
target: arm-linux-androideabi
|
||||
|
||||
Android_ARM64:
|
||||
vmImage: ubuntu-18.04
|
||||
target: aarch64-linux-android
|
||||
|
||||
Android_32:
|
||||
vmImage: ubuntu-18.04
|
||||
target: i686-unknown-linux-gnu
|
||||
|
||||
NetBSD:
|
||||
vmImage: ubuntu-18.04
|
||||
target: x86_64-unknown-netbsd
|
||||
|
||||
illumos:
|
||||
vmImage: ubuntu-18.04
|
||||
target: x86_64-unknown-illumos
|
||||
|
||||
redox:
|
||||
vmImage: ubuntu-18.04
|
||||
target: x86_64-unknown-redox
|
||||
|
||||
pool:
|
||||
vmImage: $(vmImage)
|
||||
|
||||
steps:
|
||||
- template: azure-install-rust.yml
|
||||
parameters:
|
||||
rust_version: stable
|
||||
|
||||
- script: rustup target add $(target)
|
||||
displayName: "Add target"
|
||||
|
||||
- script: cargo check --target $(target)
|
||||
displayName: Check source
|
||||
|
||||
- script: cargo check --tests --target $(target) --all-features
|
||||
displayName: Check tests
|
||||
|
||||
- script: cargo check --examples --target $(target) --all-features
|
||||
displayName: Check examples
|
||||
@@ -1,38 +0,0 @@
|
||||
parameters:
|
||||
dependsOn: []
|
||||
|
||||
jobs:
|
||||
- job: documentation
|
||||
displayName: "Deploy API Documentation"
|
||||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
||||
pool:
|
||||
vmImage: "Ubuntu 16.04"
|
||||
dependsOn:
|
||||
- ${{ parameters.dependsOn }}
|
||||
steps:
|
||||
- template: azure-install-rust.yml
|
||||
parameters:
|
||||
rust_version: stable
|
||||
- script: |
|
||||
cargo doc --no-deps --all-features
|
||||
cp -R target/doc '$(Build.BinariesDirectory)'
|
||||
displayName: "Generate Documentation"
|
||||
- script: |
|
||||
set -e
|
||||
|
||||
git --version
|
||||
ls -la
|
||||
git init
|
||||
git config user.name 'Deployment Bot (from Azure Pipelines)'
|
||||
git config user.email 'deploy@tokio-rs.com'
|
||||
git config --global credential.helper 'store --file ~/.my-credentials'
|
||||
printf "protocol=https\nhost=github.com\nusername=carllerche\npassword=%s\n\n" "$GITHUB_TOKEN" | git credential-store --file ~/.my-credentials store
|
||||
git remote add origin https://github.com/tokio-rs/mio
|
||||
git checkout -b gh-pages
|
||||
git add .
|
||||
git commit -m 'Deploy Mio API documentation'
|
||||
git push -f origin gh-pages
|
||||
env:
|
||||
GITHUB_TOKEN: $(githubPersonalToken)
|
||||
workingDirectory: "$(Build.BinariesDirectory)"
|
||||
displayName: "Deploy Documentation"
|
||||
@@ -1,33 +0,0 @@
|
||||
steps:
|
||||
# Linux and macOS.
|
||||
- script: |
|
||||
set -e
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none --profile minimal
|
||||
export PATH=$PATH:$HOME/.cargo/bin
|
||||
rustup toolchain install $RUSTUP_TOOLCHAIN
|
||||
rustup default $RUSTUP_TOOLCHAIN
|
||||
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
|
||||
env:
|
||||
RUSTUP_TOOLCHAIN: ${{parameters.rust_version}}
|
||||
displayName: "Install rust (*nix)"
|
||||
condition: not(eq(variables['Agent.OS'], 'Windows_NT'))
|
||||
|
||||
# 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 toolchain install %RUSTUP_TOOLCHAIN%
|
||||
rustup default %RUSTUP_TOOLCHAIN%
|
||||
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
|
||||
env:
|
||||
RUSTUP_TOOLCHAIN: ${{parameters.rust_version}}
|
||||
displayName: "Install rust (windows)"
|
||||
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
||||
|
||||
# All platforms.
|
||||
- script: |
|
||||
rustup toolchain list
|
||||
rustc -Vv
|
||||
cargo -V
|
||||
displayName: Query rust and cargo versions
|
||||
@@ -1,32 +0,0 @@
|
||||
parameters:
|
||||
rust_version: nightly
|
||||
|
||||
jobs:
|
||||
- job: ${{ parameters.name }}
|
||||
displayName: Minimal versions
|
||||
strategy:
|
||||
matrix:
|
||||
Linux:
|
||||
vmImage: ubuntu-18.04
|
||||
Windows:
|
||||
vmImage: windows-latest
|
||||
pool:
|
||||
vmImage: $(vmImage)
|
||||
|
||||
variables:
|
||||
RUST_BACKTRACE: full
|
||||
|
||||
steps:
|
||||
- template: azure-install-rust.yml
|
||||
parameters:
|
||||
rust_version: ${{ parameters.rust_version }}
|
||||
|
||||
- script: cargo update -Zminimal-versions
|
||||
displayName: cargo update -Zminimal-versions
|
||||
env:
|
||||
CI: "True"
|
||||
|
||||
- script: cargo test --all-features
|
||||
displayName: cargo test --all-features
|
||||
env:
|
||||
CI: "True"
|
||||
@@ -1,19 +0,0 @@
|
||||
jobs:
|
||||
# Check formatting
|
||||
- job: ${{ parameters.name }}
|
||||
displayName: Check rustfmt
|
||||
pool:
|
||||
vmImage: ubuntu-18.04
|
||||
steps:
|
||||
- template: azure-install-rust.yml
|
||||
parameters:
|
||||
rust_version: stable
|
||||
- script: |
|
||||
rustup component add rustfmt
|
||||
displayName: Install rustfmt
|
||||
- script: |
|
||||
# FIXME: for some reason this doesn't actually check all files.
|
||||
# So instead we run `rustfmt` directly on each file.
|
||||
#cargo fmt --all -- --check
|
||||
find src tests examples -type f -iname "*.rs" | xargs rustfmt --check
|
||||
displayName: Check formatting
|
||||
@@ -1,48 +0,0 @@
|
||||
parameters:
|
||||
cmd: test
|
||||
rust_version: stable
|
||||
|
||||
jobs:
|
||||
- job: ${{ parameters.name }}
|
||||
displayName: ${{ parameters.displayName }}
|
||||
strategy:
|
||||
matrix:
|
||||
Linux:
|
||||
vmImage: ubuntu-18.04
|
||||
|
||||
${{ if parameters.cross }}:
|
||||
MacOS:
|
||||
vmImage: macOS-10.15
|
||||
Windows:
|
||||
vmImage: windows-latest
|
||||
pool:
|
||||
vmImage: $(vmImage)
|
||||
|
||||
variables:
|
||||
RUST_BACKTRACE: full
|
||||
|
||||
steps:
|
||||
- template: azure-install-rust.yml
|
||||
parameters:
|
||||
rust_version: ${{ parameters.rust_version }}
|
||||
|
||||
- ${{ if eq(parameters.cmd, 'test') }}:
|
||||
- script: |
|
||||
# Cargo-hack's dependency bitflags has a higher MSVR then us.
|
||||
rustup install nightly
|
||||
rustup run nightly cargo install cargo-hack
|
||||
cargo hack check --feature-powerset
|
||||
displayName: Check feature powerset
|
||||
|
||||
- script: cargo ${{ parameters.cmd }} --all-features
|
||||
displayName: cargo ${{ parameters.cmd }} --all-features
|
||||
env:
|
||||
CI: "True"
|
||||
|
||||
- ${{ if eq(parameters.cmd, 'test') }}:
|
||||
- script: cargo doc --no-deps
|
||||
displayName: cargo doc --no-deps
|
||||
|
||||
- ${{ if parameters.benches }}:
|
||||
- script: cargo check --benches
|
||||
displayName: Check benchmarks
|
||||
Reference in New Issue
Block a user