Testing conan on linux.
Some checks failed
Build & Release / Linux-AMD64-Build (push) Failing after 7s
Build & Release / Linux-AARCH64-Build (push) Failing after 8s
Build & Release / Windows-AMD64-Build (push) Failing after 16s

This commit is contained in:
Arron David Nelson 2024-10-14 07:10:21 -07:00
parent c5ea77a6b7
commit a27c28f089
4 changed files with 20 additions and 12 deletions

View File

@ -15,6 +15,22 @@ jobs:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Generating Package
run: |
cd ${{ gitea.workspace }}
echo Installing dependencies.
conan install . --profile:host ./profiles/Windows_x86_64_Release --profile:build ./profiles/Windows_x86_64_Release --build=missing
echo Creating package.
conan create . --profile:host ./profiles/Windows_x86_64_Release --profile:build ./profiles/Windows_x86_64_Release
echo Adding remote.
conan remote add origin https://gitea.eventhorizonstudio.io/api/packages/EventHorizonStudio/conan --force
echo Logging in to remote.
conan remote login origin ${{secrets.CONAN_USERNAME}} --password ${{secrets.CONAN_TOKEN}}
echo Uploading to remote.
conan upload --remote=origin ehs
echo Removing remote.
conan remote remove origin
- name: Generating Documentation - name: Generating Documentation
run: | run: |
doxygen ehs-docs-config.doxyfile doxygen ehs-docs-config.doxyfile

View File

@ -3,6 +3,8 @@ from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout, CMakeDeps
class helloRecipe(ConanFile): class helloRecipe(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeToolchain", "CMakeDeps"
name = "ehs" name = "ehs"
version = "1.3.0" version = "1.3.0"
@ -14,17 +16,10 @@ class helloRecipe(ConanFile):
topics = ("cross-platform", "audio", "file", "sockets") topics = ("cross-platform", "audio", "file", "sockets")
# Binary configuration # Binary configuration
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False], "fPIC": [True, False]}
default_options = {"shared": False, "fPIC": True}
# Sources are located in the same place as this recipe, copy them to the recipe # Sources are located in the same place as this recipe, copy them to the recipe
exports_sources = "CMakeLists.txt", "src/*", "include/*" exports_sources = "CMakeLists.txt", "src/*", "include/*"
def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC
def layout(self): def layout(self):
cmake_layout(self) cmake_layout(self)
@ -34,11 +29,6 @@ class helloRecipe(ConanFile):
tc = CMakeToolchain(self) tc = CMakeToolchain(self)
tc.generate() tc.generate()
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def requirements(self): def requirements(self):
requirements = self.conan_data.get('requirements', []) requirements = self.conan_data.get('requirements', [])
for requirement in requirements: for requirement in requirements:

View File

@ -2,4 +2,5 @@
os=Windows os=Windows
arch=x86_64 arch=x86_64
compiler=msvc compiler=msvc
compiler.version=194
build_type=Debug build_type=Debug

View File

@ -2,4 +2,5 @@
os=Windows os=Windows
arch=x86_64 arch=x86_64
compiler=msvc compiler=msvc
compiler.version=194
build_type=Release build_type=Release