diff --git a/.github/workflows/conan.yml b/.github/workflows/conan.yml index 7508d849..97e3181f 100644 --- a/.github/workflows/conan.yml +++ b/.github/workflows/conan.yml @@ -34,7 +34,7 @@ jobs: conan profile detect - name: Update Conan profile - if: matrix.os.name == 'windows-latest' + if: matrix.os == 'windows-latest' run: | $profilePath = "$env:USERPROFILE\.conan\profiles\default" $content = Get-Content -Path $profilePath @@ -44,7 +44,7 @@ jobs: - name: Conan create working-directory: . run: | - conan create . -tf="tests" + conan create . -tf="tests" -s build_type=${{ matrix.build_type }} -o use_libuv=True - name: Open a tmate debug session if: ${{ failure() }} diff --git a/conanfile.py b/conanfile.py index 4b499d06..06e8b7f5 100644 --- a/conanfile.py +++ b/conanfile.py @@ -14,8 +14,8 @@ class cpprealmRecipe(ConanFile): # Binary configuration settings = "os", "compiler", "build_type", "arch" - options = {"shared": [True, False], "fPIC": [True, False]} - default_options = {"shared": False, "fPIC": True} + options = {"shared": [True, False], "use_libuv": [True, False]} + default_options = {"shared": False, "use_libuv": True} def is_darwin(self): return self.settings.os == "Macos" or self.settings.os == "iOS" or self.settings.os == "watchOS" @@ -32,6 +32,8 @@ def requirements(self): if self.settings.os == "Linux": self.requires("libcurl/8.4.0") + if not self.is_darwin() and self.settings.use_libuv: + self.requires("libuv/1.43.0") def source(self): git = Git(self) git.clone(url="https://github.com/realm/realm-cpp", target=".")