forked from wxWidgets/Phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathci-linux-job.yml
72 lines (62 loc) · 1.93 KB
/
ci-linux-job.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
jobs:
- job: Linux_CI
timeoutInMinutes: 90
displayName: 'Linux CI'
pool:
vmImage: 'Ubuntu 20.04'
strategy:
matrix:
Py38:
python.version: '3.8'
Py39:
python.version: '3.9'
Py310:
python.version: '3.10'
Py311:
python.version: '3.11'
Py312:
python.version: '3.12'
variables:
PYTHONUNBUFFERED: '1'
CCACHE_DIR: $(Pipeline.Workspace)/ccache
steps:
- checkout: self
submodules: recursive
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
- script: |
sudo apt-get update
sudo apt-get install -y build-essential ccache
sudo apt-get install -y libgtk-3-dev libjpeg-dev libtiff-dev \
libsdl2-dev libgstreamer-plugins-base1.0-dev libnotify-dev \
libsm-dev libwebkit2gtk-4.0-dev libxtst-dev libexpat1-dev \
libgl1-mesa-dev libglu1-mesa-dev libcurl4-openssl-dev \
libgstreamer-plugins-bad1.0-dev
echo "##vso[task.prependpath]/usr/lib/ccache"
displayName: 'Install deb package requirements & setup ccache'
- task: Cache@2
inputs:
key: 'ccache | "$(Agent.OS)" | "$(python.version)" | "$(Build.BuildNumber)"'
path: $(CCACHE_DIR)
restoreKeys: |
ccache | "$(Agent.OS)" | "$(python.version)"
displayName: ccache
- script: |
python -m pip install -U pip setuptools wheel
python -m pip install -r requirements.txt
displayName: 'Install Python dependencies'
- script: |
python build.py --jobs=4 build_wx
displayName: 'build wxWidgets'
- script: |
python build.py dox etg --nodoc sip
displayName: 'generate code'
- script: |
python build.py --jobs=4 build_py
displayName: 'build wxPython'
- script: |
python build.py bdist_wheel
python -m pip install dist/wxPython-*.whl
python -c "import wx; print(wx.version());"
displayName: 'build wheel and test install'