summaryrefslogtreecommitdiffstats
path: root/third_party/rust/mio/ci
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /third_party/rust/mio/ci
parentInitial commit. (diff)
downloadfirefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz
firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/mio/ci')
-rw-r--r--third_party/rust/mio/ci/azure-cross-compile.yml56
-rw-r--r--third_party/rust/mio/ci/azure-deploy-docs.yml39
-rw-r--r--third_party/rust/mio/ci/azure-install-rust.yml32
-rw-r--r--third_party/rust/mio/ci/azure-test-stable.yml45
4 files changed, 172 insertions, 0 deletions
diff --git a/third_party/rust/mio/ci/azure-cross-compile.yml b/third_party/rust/mio/ci/azure-cross-compile.yml
new file mode 100644
index 0000000000..c7db94f43d
--- /dev/null
+++ b/third_party/rust/mio/ci/azure-cross-compile.yml
@@ -0,0 +1,56 @@
+parameters:
+ vmImage: ubuntu-16.04
+
+jobs:
+- job: ${{ parameters.name }}
+ displayName: Cross
+ strategy:
+ matrix:
+ iOS:
+ vmImage: macOS-10.13
+ target: x86_64-apple-ios
+
+ Android:
+ vmImage: ubuntu-16.04
+ target: arm-linux-androideabi
+
+ Android_64:
+ vmImage: ubuntu-16.04
+ target: aarch64-linux-android
+
+ NetBSD:
+ vmImage: ubuntu-16.04
+ target: x86_64-unknown-netbsd
+
+ Solaris:
+ vmImage: ubuntu-16.04
+ target: x86_64-sun-solaris
+
+ 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)
+ displayName: Check tests
+
+ - script: cargo check --examples --target $(target)
+ displayName: Check examples
+
+ - script: cargo check --target $(target) --no-default-features
+ displayName: Check source (no default features)
+
+ - script: cargo check --tests --target $(target) --no-default-features
+ displayName: Check tests (no default features)
+
+ - script: cargo check --examples --target $(target) --no-default-features
+ displayName: Check examples (no default features)
diff --git a/third_party/rust/mio/ci/azure-deploy-docs.yml b/third_party/rust/mio/ci/azure-deploy-docs.yml
new file mode 100644
index 0000000000..2ff0f2a06e
--- /dev/null
+++ b/third_party/rust/mio/ci/azure-deploy-docs.yml
@@ -0,0 +1,39 @@
+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
+ 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'
+
diff --git a/third_party/rust/mio/ci/azure-install-rust.yml b/third_party/rust/mio/ci/azure-install-rust.yml
new file mode 100644
index 0000000000..43d806e7f7
--- /dev/null
+++ b/third_party/rust/mio/ci/azure-install-rust.yml
@@ -0,0 +1,32 @@
+steps:
+ # Linux and macOS.
+ - script: |
+ set -e
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none
+ 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: |
+ rustc -Vv
+ cargo -V
+ displayName: Query rust and cargo versions
diff --git a/third_party/rust/mio/ci/azure-test-stable.yml b/third_party/rust/mio/ci/azure-test-stable.yml
new file mode 100644
index 0000000000..b0b9be145f
--- /dev/null
+++ b/third_party/rust/mio/ci/azure-test-stable.yml
@@ -0,0 +1,45 @@
+parameters:
+ cmd: test
+ rust_version: stable
+
+jobs:
+- job: ${{ parameters.name }}
+ displayName: ${{ parameters.displayName }}
+ strategy:
+ matrix:
+ Linux:
+ vmImage: ubuntu-16.04
+
+ ${{ if parameters.cross }}:
+ MacOS:
+ vmImage: macOS-10.13
+ Windows:
+ vmImage: vs2017-win2016
+ pool:
+ vmImage: $(vmImage)
+
+ steps:
+ - template: azure-install-rust.yml
+ parameters:
+ rust_version: ${{ parameters.rust_version }}
+
+ - script: |
+ cargo update
+ cargo update -p cfg-if --precise 0.1.9
+ cargo ${{ parameters.cmd }}
+ displayName: cargo ${{ parameters.cmd }}
+ env:
+ CI: 'True'
+
+ - script: cargo ${{ parameters.cmd }} --no-default-features
+ displayName: cargo ${{ parameters.cmd }} --no-default-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