@@ -54,13 +54,18 @@ jobs:
5454 - name : Checkout PythonQt
5555 uses : actions/checkout@v4
5656
57+ - name : Ccache
58+ uses : hendrikmuhs/ccache-action@v1.2.14
59+ with :
60+ key : ${{ runner.os }}-ubuntu-${{ matrix.container_version }}
61+
5762 - name : Build PythonQt
5863 run : |
5964 export QT_SELECT=qt5
6065 echo ======= SYSTEM INFO ========
6166 uname -a; gcc --version | grep "gcc"; python3 --version; qmake --version
6267 echo ============================
63- qmake -r PythonQt.pro CONFIG+=release CONFIG+=force_debug_info \
68+ qmake -r PythonQt.pro CONFIG+=ccache CONFIG+= release CONFIG+=force_debug_info \
6469 CONFIG+=sanitizer CONFIG+=sanitize_undefined CONFIG+=sanitize_address \
6570 PYTHON_VERSION=$(python3 --version | cut -d " " -f 2 | cut -d "." -f1,2) \
6671 PYTHON_DIR=$(which python3 | xargs dirname | xargs dirname)
@@ -202,6 +207,11 @@ jobs:
202207 - name : Checkout PythonQt
203208 uses : actions/checkout@v4
204209
210+ - name : Ccache
211+ uses : hendrikmuhs/ccache-action@v1.2.14
212+ with :
213+ key : ${{ runner.os }}-${{ matrix.qt-version }}
214+
205215 - name : Detect exact versions
206216 id : versions
207217 run : |
@@ -230,7 +240,7 @@ jobs:
230240 for i in "python${{ steps.versions.outputs.PYTHON_VERSION_SHORT }}-embed" "python${{ steps.versions.outputs.PYTHON_VERSION_SHORT }}" \
231241 "python${PYTHON_VERSION_MAJOR}-embed" "python${PYTHON_VERSION_MAJOR}"
232242 do if pkg-config --exists "$i"; then PYTHON_PKGCONFIG_NAME="$i"; break; fi; done
233- qmake CONFIG+=${{ matrix.configuration }} CONFIG+=sanitizer CONFIG+=sanitize_undefined CONFIG+=sanitize_address \
243+ qmake CONFIG+=ccache CONFIG+= ${{ matrix.configuration }} CONFIG+=sanitizer CONFIG+=sanitize_undefined CONFIG+=sanitize_address \
234244 PYTHON_VERSION=${{ steps.versions.outputs.PYTHON_VERSION_SHORT }} \
235245 PYTHON_DIR="$pythonLocation" \
236246 PKGCONFIG+=$PYTHON_PKGCONFIG_NAME \
0 commit comments