-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Qt5 latest workflow #151
Merged
Merged
Qt5 latest workflow #151
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Latest Qt5 | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
ubuntu: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
qt-version: [ '5.12.*' ] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now that the other branch is merged, you may try to add "5.15.*" to the matrix. |
||
python-version: [ '3.12' ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Install Qt ${{matrix.qt-version}} | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
version: ${{ matrix.qt-version }} | ||
archives: 'qtmultimedia qtlinuxextras qtbase qttools icu qtwayland' | ||
|
||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '${{ matrix.python-version }}' | ||
|
||
- name: Checkout PythonQt | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set environment | ||
run: | | ||
QT_VERSION_MAJOR=$(cut -f 1 -d . <<< "${{matrix.qt-version}}") | ||
echo "QT_VERSION_MAJOR=$QT_VERSION_MAJOR" >> $GITHUB_ENV | ||
QTDIR=$(eval echo "\$Qt${QT_VERSION_MAJOR}_DIR") | ||
echo "QTDIR=$QTDIR" >> $GITHUB_ENV | ||
echo "$QTDIR/bin" >> $GITHUB_PATH | ||
echo "$pythonLocation/bin" >> $GITHUB_PATH | ||
|
||
- name: Build generator | ||
run: | | ||
cd generator | ||
qmake -r generator.pro CONFIG+=release CONFIG+=force_debug_info \ | ||
CONFIG+=sanitizer CONFIG+=sanitize_undefined CONFIG+=sanitize_address | ||
make -j $(nproc) | ||
|
||
- name: Generate Wrappers | ||
run: | | ||
cd generator | ||
UBSAN_OPTIONS="halt_on_error=1" \ | ||
ASAN_OPTIONS="detect_leaks=0:detect_stack_use_after_return=1:fast_unwind_on_malloc=0" \ | ||
./pythonqt_generator | ||
|
||
- name: Upload Wrappers | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wrappers_ubuntu_5-latest | ||
path: generated_cpp | ||
|
||
- name: Build PythonQt | ||
run: | | ||
echo ======= SYSTEM INFO ======== | ||
uname -a; gcc --version | grep "gcc"; python3 --version; qmake --version | ||
echo ============================ | ||
qmake -r PythonQt.pro 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) | ||
make -j $(nproc) | ||
UBSAN_OPTIONS="halt_on_error=1" ASAN_OPTIONS="detect_leaks=0:detect_stack_use_after_return=1:fast_unwind_on_malloc=0" \ | ||
make check TESTARGS="-platform offscreen" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe change the name to something like "Use generated code", as this is certainly not the latest Qt5. There are two othyer workflows (ubuntu 22.04 and WinGW 7.3) with Qt 5.15.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, there is some misunderstanding between "latest qt" and 5.12 :)
I will rename it to the more suitable form