-
Notifications
You must be signed in to change notification settings - Fork 684
feat: use conan and ownCloud artifactory #12179
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
Open
DeepDiver1975
wants to merge
18
commits into
master
Choose a base branch
from
feat/conan-with-artifactory
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
d3e0b15
feat: use conan and ownCloud artifactory
DeepDiver1975 e24244a
fix: cmake Qt6:: + includes
DeepDiver1975 7a3fcb3
fix: use extra-cmake-modules/6.8.0
DeepDiver1975 816b8d4
fix: remove include(Qt6QmlPublicCMakeHelpers) - not found on MacOS
DeepDiver1975 5ceb92a
feat: openssl/3.4.2
DeepDiver1975 00f179c
fix: now with qttranslations
DeepDiver1975 e2d3e36
ci: run conan build
DeepDiver1975 53d7435
fix: Qt6::DBus it is ....
DeepDiver1975 b387b5d
fix: macos - os.version=13.0
DeepDiver1975 7611478
ci: add windows build
DeepDiver1975 6e40e76
ci: disable CredentialManagerTest
DeepDiver1975 efd26ad
ci: disable tests on linux
DeepDiver1975 e927b52
Fix tests on Windows
erikjv e6296fc
Add Qt libraries directory to LD_LIBRARY_PATH
erikjv 543de1e
fix: enable tests on all platforms
DeepDiver1975 c0a9a7a
fix: run ctest as part of conan build
DeepDiver1975 ecbec73
Fix env setting on Linux
erikjv 06fc3ad
fix: run ctest as part of conan build
DeepDiver1975 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 hidden or 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,5 @@ | ||
| core.net.http:timeout = 300 | ||
|
|
||
| tools.system.package_manager:mode = install | ||
| tools.system.package_manager:sudo = True | ||
|
|
This file contains hidden or 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,9 @@ | ||
| [settings] | ||
| arch=armv8 | ||
| build_type=Release | ||
| compiler=apple-clang | ||
| compiler.cppstd=17 | ||
| compiler.libcxx=libc++ | ||
| compiler.version=15 | ||
| os=Macos | ||
| os.version=13.0 | ||
This file contains hidden or 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,8 @@ | ||
| [settings] | ||
| arch=x86_64 | ||
| build_type=Release | ||
| compiler=gcc | ||
| compiler.cppstd=gnu17 | ||
| compiler.libcxx=libstdc++11 | ||
| compiler.version=13 | ||
| os=Linux |
This file contains hidden or 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,9 @@ | ||
| [settings] | ||
| arch=x86_64 | ||
| build_type=Release | ||
| compiler=msvc | ||
| compiler.cppstd=17 | ||
| compiler.runtime=dynamic | ||
| compiler.runtime_type=Debug | ||
| compiler.version=194 | ||
| os=Windows |
This file contains hidden or 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,49 @@ | ||
| name: Build with conan | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Building ${{ matrix.build_type }} ${{ matrix.profile }} | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| # Release build type | ||
| - os: ubuntu-latest | ||
| profile: ubuntu-latest-x86_64 | ||
| build_type: Release | ||
| - os: macos-latest | ||
| profile: macos-latest-armv8 | ||
| build_type: Release | ||
| - os: windows-latest | ||
| profile: windows-latest-x86_64 | ||
| build_type: Release | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Install Conan | ||
| uses: conan-io/setup-conan@v1 | ||
| with: | ||
| version: '2.19' | ||
|
|
||
| - name: Add artifactory & set conan config | ||
| run: | | ||
| conan config install ./.conan/config/global.conf | ||
| conan remote remove conancenter | ||
| conan remote add oc https://artifactory.owncloud-demo.com/artifactory/api/conan/conan-local | ||
| conan remote login oc ${{ secrets.CONAN_USER }} -p ${{ secrets.CONAN_PASSWORD }} | ||
| conan remote list | ||
| conan profile show | ||
|
|
||
| - name: Build the client with conan and run tests | ||
| run: | | ||
| conan build . --profile=.conan/profiles/${{ matrix.profile }}.conanprofile -s build_type=${{ matrix.build_type }} |
This file contains hidden or 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 hidden or 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 hidden or 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,54 @@ | ||
| from conan import ConanFile | ||
| from conan.tools.build import can_run | ||
| from conan.tools.cmake import cmake_layout, CMake | ||
|
|
||
| class ClientRecipe(ConanFile): | ||
| settings = "os", "compiler", "arch", "build_type" | ||
| generators = "CMakeToolchain", "CMakeDeps" | ||
| options = {"shared": [True, False]} | ||
| default_options = { | ||
| "shared": True, | ||
| "*:fPIC": True, | ||
| 'qt/*:shared': True, | ||
| 'qt/*:qtdeclarative': True, | ||
| 'qt/*:qtquickcontrols2': True, | ||
| 'qt/*:qtshadertools': True, | ||
| 'qt/*:qtsvg': True, | ||
| 'qt/*:qtimageformats': True, | ||
| 'qt/*:qttools': True, | ||
| 'qt/*:qttranslations': True, | ||
| 'qt/*:gui': True, | ||
| 'qt/*:widgets': True, | ||
| } | ||
|
|
||
| def configure(self): | ||
| self.options['qt/*'].with_pq = False | ||
| self.options['qt/*'].with_odbc = False | ||
| if self.settings.os == "Linux": | ||
| self.options['qt/*'].with_dbus = True | ||
|
|
||
| def requirements(self): | ||
| self.requires("extra-cmake-modules/6.8.0") | ||
| self.requires("zlib/1.3.1") | ||
| self.requires("sqlite3/3.49.1") | ||
| self.requires("openssl/3.4.2") | ||
| self.requires("nlohmann_json/3.11.3") | ||
| self.requires("qt/6.8.3") | ||
| self.requires("kdsingleapplication/1.2.0") | ||
| self.requires("qtkeychain/0.15.0") | ||
| self.requires("libregraphapi/1.0.4") | ||
| if self.settings.os == "Macos": | ||
| self.requires("sparkle/2.7.0") | ||
|
|
||
| def build_requirements(self): | ||
| self.tool_requires("cmake/3.30.0") | ||
|
|
||
| def layout(self): | ||
| cmake_layout(self) | ||
|
|
||
| def build(self): | ||
| cmake = CMake(self) | ||
| cmake.configure() | ||
| cmake.build() | ||
| if can_run(self): | ||
| cmake.ctest(["--output-on-failure"]) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
you need another mac config with x86_64