-
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.
* Align names and use cmake presets * use action with cmake presets
- Loading branch information
Showing
31 changed files
with
432 additions
and
172 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,16 @@ | ||
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 | ||
|
||
uses: EddyTheCo/Common/.github/workflows/codeFormat.yml@ndk26 | ||
|
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: common | ||
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/@v0.1.0 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,7 @@ | |
doc/html/ | ||
doc/*.tag | ||
*.swp | ||
CMakeLists.txt.user | ||
build* | ||
tags | ||
CMakeUserPresets.json |
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,154 @@ | ||
{ | ||
"version": 6, | ||
"configurePresets": [ | ||
{ | ||
"name": "default-release", | ||
"displayName": "Default Release", | ||
"description": "Release Static library using Ninja generator", | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/build/release", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Release", | ||
"REPO_URL":"https://eddytheco.github.io/Esterv.Utils.QrCode" | ||
} | ||
}, | ||
{ | ||
"name": "default-develop", | ||
"displayName": "Default Config for development(Release)", | ||
"description": "Release build type using Ninja generator, add tests and docs", | ||
"inherits": "default-release", | ||
"cacheVariables": { | ||
"BUILD_DOCS":"ON", | ||
"BUILD_EXAMPLES": "ON", | ||
"QTDEPLOY":"ON" | ||
} | ||
}, | ||
{ | ||
"name": "default-develop-debug", | ||
"displayName": "Default Config for development(Debug)", | ||
"description": "Debug build type using Ninja generator", | ||
"inherits": "default-develop", | ||
"binaryDir": "${sourceDir}/build/debug", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
} | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "default-release", | ||
"configurePreset": "default-release" | ||
}, | ||
{ | ||
"name": "default-develop", | ||
"configurePreset": "default-develop" | ||
}, | ||
{ | ||
"name": "default-develop-debug", | ||
"configurePreset": "default-develop-debug" | ||
}, | ||
{ | ||
"name": "default-documentation", | ||
"configurePreset": "default-develop", | ||
"targets":"doxygen_docs" | ||
}, | ||
{ | ||
"name": "default-qmllint", | ||
"configurePreset": "default-develop", | ||
"targets":"all_qmllint_json" | ||
} | ||
], | ||
"workflowPresets": [ | ||
{ | ||
"name": "default-release", | ||
"steps": [ | ||
{ | ||
"type": "configure", | ||
"name": "default-release" | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "default-release" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "default-develop", | ||
"steps": [ | ||
{ | ||
"type": "configure", | ||
"name": "default-develop" | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "default-develop" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "default-documentation", | ||
"steps": [ | ||
{ | ||
"type": "configure", | ||
"name": "default-develop" | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "default-documentation" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "default-qmllint", | ||
"steps": [ | ||
{ | ||
"type": "configure", | ||
"name": "default-develop" | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "default-qmllint" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "default-develop-debug", | ||
"steps": [ | ||
{ | ||
"type": "configure", | ||
"name": "default-develop-debug" | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "default-develop-debug" | ||
} | ||
] | ||
} | ||
], | ||
"packagePresets": [ | ||
{ | ||
"name": "default-release", | ||
"description": "Release runtime components", | ||
"configurePreset": "default-release", | ||
"generators": [ | ||
"IFW","TGZ" | ||
], | ||
"variables": { | ||
"CPACK_COMPONENTS_ALL": "EstervQrGen;EstervQtQrGen;EstervQrDec;EstervQtQrDec;EstervQtQrGen-qml;EstervQtQrDec-qml", | ||
"CPACK_PACKAGE_CONTACT":"estervtech@gmail.com", | ||
"CPACK_PACKAGE_VENDOR":"estervtech" | ||
}, | ||
"packageDirectory": "packages" | ||
}, | ||
{ | ||
"name": "default-develop", | ||
"description": "Release development components", | ||
"inherits":"default-release", | ||
"configurePreset": "default-develop", | ||
"variables": { | ||
"CPACK_COMPONENTS_ALL": "EstervQrGen;EstervQrGen-dev;EstervQrDec;EstervQrDec-dev;EstervQtQrGen;EstervQtQrGen-dev;EstervQtQrDec;EstervQtQrDec-dev;EstervQtQrGen-qml;EstervQtQrDec-qml; EstervQrCode-examples" | ||
} | ||
} | ||
] | ||
|
||
} |
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,6 +1,6 @@ | ||
@PACKAGE_INIT@ | ||
include(CMakeFindDependencyMacro) | ||
find_dependency(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick Svg OPTIONAL_COMPONENTS Multimedia ) | ||
find_dependency(Qt6 COMPONENTS Core Gui Qml Quick Svg OPTIONAL_COMPONENTS Multimedia ) | ||
find_dependency(OpenCV COMPONENTS core objdetect imgproc flann features2d calib3d ) | ||
find_dependency(EstervDesigns 1.2 COMPONENTS SimpleStyle CustomControls CONFIG) | ||
include ( "${CMAKE_CURRENT_LIST_DIR}/qrCode-config.cmake" ) | ||
include ( "${CMAKE_CURRENT_LIST_DIR}/EstervQrCode-config.cmake" ) |
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
Oops, something went wrong.