Skip to content

Commit 5f8def4

Browse files
authored
enable portaudio installation by existence of a variable that we will set in the matrix for portaudio ci.yml (#42693)
1 parent 9108a45 commit 5f8def4

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
steps:
2+
- script: |
3+
if [[ "$AGENT_OS" == "Linux" ]]; then
4+
sudo apt-get update
5+
sudo apt-get install -y portaudio19-dev libasound2-dev
6+
elif [[ "$AGENT_OS" == "Darwin" ]]; then
7+
brew update
8+
brew install portaudio
9+
fi
10+
displayName: Install portaudio dependencies if necessary
11+
condition: and(succeeded(), ne(variables['InstallPortAudio'], ''), or(eq(variables['Agent.OS'], 'Linux'), eq(variables['Agent.OS'], 'Darwin')))

eng/pipelines/templates/steps/use-venv.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,6 @@ steps:
4242
-VenvName "${{ parameters.VirtualEnvironmentName }}" `
4343
-RepoRoot "$(Build.SourcesDirectory)"
4444
displayName: Use ${{ parameters.VirtualEnvironmentName }} Virtual Environment
45-
condition: ${{ parameters.Condition }}
45+
condition: ${{ parameters.Condition }}
46+
47+
- template: install-portaudio.yml

0 commit comments

Comments
 (0)