55
55
echo ============================
56
56
qmake -r PythonQt.pro CONFIG+=release CONFIG+=sanitizer CONFIG+=sanitize_undefined \
57
57
PYTHON_VERSION=$(python3 --version | cut -d " " -f 2 | cut -d "." -f1,2) \
58
- PYTHON_DIR=$(which python3 | xargs dirname | xargs dirname)
59
- make -j 2 && make check TESTARGS="-platform offscreen"
58
+ PYTHON_DIR=$(which python3 | xargs dirname | xargs dirname)
59
+ make -j 2
60
+ UBSAN_OPTIONS="halt_on_error=1" ASAN_OPTIONS="detect_stack_use_after_return=1:fast_unwind_on_malloc=0" \
61
+ make check TESTARGS="-platform offscreen"
60
62
61
63
- name : Generate Wrappers
62
64
run : |
86
88
matrix :
87
89
container :
88
90
- ' centos:7'
91
+ configuration : ['debug', 'release']
89
92
runs-on : ubuntu-latest
90
93
container : ${{ matrix.container }}
91
94
steps :
@@ -113,9 +116,9 @@ jobs:
113
116
echo ======= SYSTEM INFO ========
114
117
uname -a; gcc --version | grep "gcc"; python --version; qmake-qt5 --version
115
118
echo ============================
116
- qmake-qt5 -r PythonQt.pro CONFIG+=release \
117
- PYTHON_VERSION=$(python --version | cut -d " " -f 2 | cut -d "." -f1,2) \
118
- PYTHON_DIR=$(which python | xargs dirname | xargs dirname)
119
+ qmake-qt5 -r PythonQt.pro CONFIG+=${{ matrix.configuration }} \
120
+ PYTHON_VERSION=$(python --version | cut -d " " -f 2 | cut -d "." -f1,2) \
121
+ PYTHON_DIR=$(which python | xargs dirname | xargs dirname)
119
122
make -j 2 && make check TESTARGS="-platform offscreen"
120
123
121
124
- name : Generate Wrappers
@@ -139,13 +142,16 @@ jobs:
139
142
macos-version : ['10.15']
140
143
python-version : ['2.7']
141
144
qt-version : ['5.9.*']
145
+ configuration : ['release','debug']
142
146
include :
143
147
- macos-version : ' 11'
144
148
python-version : ' 3.6'
145
149
qt-version : ' 5.11.*'
150
+ configuration : ' release'
146
151
- macos-version : ' 12'
147
152
python-version : ' 3.11'
148
153
qt-version : ' 5.12.*'
154
+ configuration : ' debug'
149
155
runs-on : macos-${{ matrix.macos-version }}
150
156
steps :
151
157
- name : Install Qt
@@ -195,14 +201,17 @@ jobs:
195
201
for i in "python${{ steps.versions.outputs.PYTHON_VERSION_SHORT }}-embed" "python${{ steps.versions.outputs.PYTHON_VERSION_SHORT }}" \
196
202
"python${PYTHON_VERSION_MAJOR}-embed" "python${PYTHON_VERSION_MAJOR}"
197
203
do if pkg-config --exists "$i"; then PYTHON_PKGCONFIG_NAME="$i"; break; fi; done
198
- qmake CONFIG+=release CONFIG+=sanitizer CONFIG+=sanitize_undefined \
199
- PYTHON_VERSION=${{ steps.versions.outputs.PYTHON_VERSION_SHORT }} \
200
- PYTHON_PATH="$pythonLocation" \
201
- PKGCONFIG+=$PYTHON_PKGCONFIG_NAME \
202
- -r PythonQt.pro
203
- make -j 2 && make check TESTARGS="-platform offscreen"
204
+ qmake CONFIG+=${{ matrix.configuration }} CONFIG+=sanitizer CONFIG+=sanitize_undefined \
205
+ PYTHON_VERSION=${{ steps.versions.outputs.PYTHON_VERSION_SHORT }} \
206
+ PYTHON_DIR="$pythonLocation" \
207
+ PKGCONFIG+=$PYTHON_PKGCONFIG_NAME \
208
+ -r PythonQt.pro
209
+ make -j 2
210
+ UBSAN_OPTIONS="halt_on_error=1" ASAN_OPTIONS="detect_stack_use_after_return=1:fast_unwind_on_malloc=0" \
211
+ make check TESTARGS="-platform offscreen"
204
212
205
213
- name : Generate Wrappers
214
+ if : ${{ contains(matrix.configuration, 'release') }}
206
215
run : |
207
216
cd generator
208
217
# workaround to allow to find the Qt include dirs for installed standard qt packages
0 commit comments