-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a7d90f
commit 9d56817
Showing
2 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,13 +54,18 @@ jobs: | |
- name: Checkout PythonQt | ||
uses: actions/checkout@v4 | ||
|
||
- name: Ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ runner.os }}-ubuntu-${{ matrix.container_version }} | ||
|
||
- name: Build PythonQt | ||
run: | | ||
export QT_SELECT=qt5 | ||
echo ======= SYSTEM INFO ======== | ||
uname -a; gcc --version | grep "gcc"; python3 --version; qmake --version | ||
echo ============================ | ||
qmake -r PythonQt.pro CONFIG+=release CONFIG+=force_debug_info \ | ||
qmake -r PythonQt.pro CONFIG+=ccache CONFIG+=release CONFIG+=force_debug_info \ | ||
CONFIG+=sanitizer CONFIG+=sanitize_undefined CONFIG+=sanitize_address \ | ||
PYTHON_VERSION=$(python3 --version | cut -d " " -f 2 | cut -d "." -f1,2) \ | ||
PYTHON_DIR=$(which python3 | xargs dirname | xargs dirname) | ||
|
@@ -202,6 +207,11 @@ jobs: | |
- name: Checkout PythonQt | ||
uses: actions/checkout@v4 | ||
|
||
- name: Ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ runner.os }}-${{ matrix.qt-version }} | ||
|
||
- name: Detect exact versions | ||
id : versions | ||
run : | | ||
|
@@ -230,7 +240,7 @@ jobs: | |
for i in "python${{ steps.versions.outputs.PYTHON_VERSION_SHORT }}-embed" "python${{ steps.versions.outputs.PYTHON_VERSION_SHORT }}" \ | ||
"python${PYTHON_VERSION_MAJOR}-embed" "python${PYTHON_VERSION_MAJOR}" | ||
do if pkg-config --exists "$i"; then PYTHON_PKGCONFIG_NAME="$i"; break; fi; done | ||
qmake CONFIG+=${{ matrix.configuration }} CONFIG+=sanitizer CONFIG+=sanitize_undefined CONFIG+=sanitize_address \ | ||
qmake CONFIG+=ccache CONFIG+=${{ matrix.configuration }} CONFIG+=sanitizer CONFIG+=sanitize_undefined CONFIG+=sanitize_address \ | ||
PYTHON_VERSION=${{ steps.versions.outputs.PYTHON_VERSION_SHORT }} \ | ||
PYTHON_DIR="$pythonLocation" \ | ||
PKGCONFIG+=$PYTHON_PKGCONFIG_NAME \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,10 @@ on: | |
- master | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
@@ -43,6 +47,12 @@ jobs: | |
- name: Checkout PythonQt | ||
uses: actions/checkout@v4 | ||
|
||
- name: Ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ runner.os }}-${{ matrix.qt-version }} | ||
if: ${{ matrix.os == 'ubuntu' }} | ||
|
||
- name: Set environment | ||
id: setenv | ||
run: | | ||
|
@@ -60,7 +70,7 @@ jobs: | |
if: ${{ matrix.os == 'ubuntu' }} | ||
run: | | ||
cd generator | ||
qmake -r generator.pro CONFIG+=release CONFIG-=debug_and_release CONFIG+=force_debug_info \ | ||
qmake -r generator.pro CONFIG+=ccache CONFIG+=release CONFIG-=debug_and_release CONFIG+=force_debug_info \ | ||
CONFIG+=sanitizer CONFIG+=sanitize_undefined CONFIG+=sanitize_address | ||
make -j $(nproc) | ||
|
@@ -93,7 +103,7 @@ jobs: | |
echo ======= SYSTEM INFO ======== | ||
uname -a; gcc --version | grep "gcc"; python3 --version; qmake --version | ||
echo ============================ | ||
qmake -r PythonQt.pro CONFIG+=release CONFIG+=force_debug_info \ | ||
qmake -r PythonQt.pro CONFIG+=ccache CONFIG+=release CONFIG+=force_debug_info \ | ||
CONFIG+=sanitizer CONFIG+=sanitize_undefined CONFIG+=sanitize_address \ | ||
PYTHON_VERSION=$(python3 --version | cut -d " " -f 2 | cut -d "." -f1,2) \ | ||
PYTHON_DIR=$(which python3 | xargs dirname | xargs dirname) | ||
|