-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix install dlls and online update for windows, format and lint code
* install dlls on bin, and compiler-specific libraries (#18) * use the latest common scripts and dependencies * added qmllint and codeformat actions
- Loading branch information
Showing
15 changed files
with
511 additions
and
539 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
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,46 @@ | ||
name: codeFormat | ||
run-name: Format code and do PR | ||
on: | ||
pull_request_target: | ||
types: [closed] | ||
branches: [develop] | ||
jobs: | ||
checkout-format-pr: | ||
runs-on: ubuntu-latest | ||
if: ${{ (github.event.pull_request.merged == true) && (startsWith(github.base_ref, 'develop')) }} | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
|
||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies on ubuntu | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install clang-format | ||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
aqtversion: '==3.1.*' | ||
version: '6.6.0' | ||
host: 'linux' | ||
target: 'desktop' | ||
arch: 'gcc_64' | ||
|
||
- name: Format code | ||
run: | | ||
rm aqtinstall.log | ||
find . -regex '.*\.\(cpp\|hpp\|cu\|cuh\|c\|h\)' -exec clang-format -style=file -i {} \; | ||
find . -regex '.*\.\(qml\)' -exec qmlformat -i {} \; | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6.0.4 | ||
with: | ||
commit-message: C/C++/QML formatted code | ||
branch: formattedCode | ||
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | ||
title: Fixed the format of your nice code | ||
body: Every time you change the format, I am here to fix your mess. |
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,35 @@ | ||
name: qmllintbot | ||
run-name: Linting QML for PR | ||
on: | ||
|
||
workflow_run: | ||
workflows: [push-build-release] | ||
types: | ||
- completed | ||
jobs: | ||
download-comment: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
permissions: | ||
actions: read | ||
pull-requests: write | ||
steps: | ||
- name: 'Download artifact' | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: qmllint | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
run-id: ${{ github.event.workflow_run.id }} | ||
|
||
- name: Read pr number | ||
id: getprn | ||
run: | | ||
cat pr_number | ||
echo "prn=$(cat pr_number)" >> $GITHUB_OUTPUT | ||
- name: 'Run reviewer' | ||
uses: EddyTheCo/qmllint-action/@main | ||
with: | ||
jsondir: ${{ github.workspace }} | ||
pr_number: ${{ steps.getprn.outputs.prn }} | ||
|
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
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
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
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 |
---|---|---|
@@ -1,25 +1,23 @@ | ||
#include <QGuiApplication> | ||
#include <QQmlApplicationEngine> | ||
|
||
|
||
#if defined(FORCE_STYLE) | ||
#include <QQuickStyle> | ||
#endif | ||
int main(int argc, char *argv[]) | ||
{ | ||
QGuiApplication app(argc, argv); | ||
int main(int argc, char *argv[]) { | ||
QGuiApplication app(argc, argv); | ||
|
||
#if defined(FORCE_STYLE) | ||
QQuickStyle::setStyle(FORCE_STYLE); | ||
QQuickStyle::setStyle(FORCE_STYLE); | ||
#endif | ||
QQmlApplicationEngine engine; | ||
QQmlApplicationEngine engine; | ||
|
||
engine.addImportPath("qrc:/esterVtech.com/imports"); | ||
engine.addImportPath("qrc:/esterVtech.com/imports"); | ||
|
||
const QUrl url=QUrl("qrc:/esterVtech.com/imports/EtimepickerExample/qml/timepickerExample.qml"); | ||
const QUrl url = QUrl("qrc:/esterVtech.com/imports/EtimepickerExample/qml/" | ||
"timepickerExample.qml"); | ||
|
||
engine.load(url); | ||
engine.load(url); | ||
|
||
return app.exec(); | ||
return app.exec(); | ||
} | ||
|
Oops, something went wrong.