forked from jurplel/qView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-qt.yml
43 lines (36 loc) · 1.31 KB
/
install-qt.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
parameters:
- name: version
type: string
default: '5.12.9'
steps:
- script: |
sudo apt-get update
sudo apt-get install libgl1-mesa-dev libxkbcommon-x11-0 libgtk2.0-dev nasm -y
condition: and(succeeded(), eq( variables['Agent.OS'], 'Linux' ))
displayName: 'Install Ubuntu packages for Qt'
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
displayName: 'Use Python 3.8'
- script: pip install "aqtinstall==0.8"
displayName: 'Install aqtinstall'
# I hate splitting this into three but I can't figure out how to do it any better
- script: |
python -m aqt install ${{ parameters.version }} windows desktop %arch%
condition: and(succeeded(), eq( variables['Agent.OS'], 'Windows_NT' ))
displayName: 'Install Qt (Windows)'
- script: |
brew install yasm
python -m aqt install ${{ parameters.version }} mac desktop
condition: and(succeeded(), eq( variables['Agent.OS'], 'Darwin' ))
displayName: 'Install Qt (macOS)'
- script: |
python -m aqt install ${{ parameters.version }} linux desktop
condition: and(succeeded(), eq( variables['Agent.OS'], 'Linux' ))
displayName: 'Install Qt (Linux)'
- pwsh: |
cd ${{ parameters.version }}/*/
echo "##vso[task.setvariable variable=Qt5_DIR]$PWD"
cd bin
echo "##vso[task.prependpath]$PWD"
displayName: 'Add Qt to path and set Qt5_DIR'