mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
73 lines
1.9 KiB
YAML
73 lines
1.9 KiB
YAML
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'
|