Azure管道无法并行运行矩阵作业
尽管设置了推荐的设置,我始终按顺序运行azure管道。我希望在两个linux/windows中并行运行:Azure管道无法并行运行矩阵作业,azure,parallel-processing,rust,azure-devops,Azure,Parallel Processing,Rust,Azure Devops,尽管设置了推荐的设置,我始终按顺序运行azure管道。我希望在两个linux/windows中并行运行: trigger: branches: include: - 'master' strategy: maxParallel: 2 matrix: windows-stable: imageName: 'windows-latest' rustup_toolchain: stable linux-stable:
trigger:
branches:
include:
- 'master'
strategy:
maxParallel: 2
matrix:
windows-stable:
imageName: 'windows-latest'
rustup_toolchain: stable
linux-stable:
imageName: 'ubuntu-latest'
rustup_toolchain: stable
pool:
vmImage: $(imageName)
steps:
- script: |
sudo apt-get update &&
sudo apt-get install wget ca-certificates &&
sudo apt install libncursesw5-dev
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update &&
sudo apt-get install libpq-dev postgresql-11 postgresql-contrib-11 postgresql-client-11
echo "host all all 127.0.0.1/32 md5" > sudo tee -a /etc/postgresql/11/main/pg_hba.conf &&
sudo service postgresql restart && sleep 3 &&
sudo -u postgres psql -c "CREATE DATABASE \"BestSeller2\"" &&
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'pinkycerebro';" &&
sudo service postgresql restart && sleep 3
displayName: Install PG
condition: ne( variables['Agent.OS'], 'Windows_NT' )
- script: |
choco install llvm
refreshenv
displayName: Install CLANG
condition: eq( variables['Agent.OS'], 'Windows_NT' )
- script: cargo test --all
displayName: Cargo test
Azure DevOps对您可以同时启动的并行作业的数量有限制。这取决于您的场景:
查看最新的文档。谢谢,这就澄清了情况。