Signed-off-by: Nikolai Rodionov <nikolai.rodionov@onpier.de>
This commit is contained in:
@@ -2,18 +2,17 @@ when:
|
||||
event:
|
||||
- push
|
||||
steps:
|
||||
- name: Push pipewire-jack-library
|
||||
image: gitea.badhouseplants.net/badhouseplants/conan-builder:latest
|
||||
- name: Push packages
|
||||
image: gitea.badhouseplants.net/badhouseplants/conan-builder:latest
|
||||
environment:
|
||||
CONAN_PASSWORD:
|
||||
CONAN_PASSWORD:
|
||||
from_secret: GITEA_REGISTRY_TOKEN
|
||||
CONAN_LOGIN_USERNAME: devops-bot
|
||||
commands:
|
||||
- conan build pipewire-jack-devel
|
||||
- conan create pipewire-jack-devel
|
||||
- conan remote add gitea https://gitea.badhouseplants.net/api/packages/badhouseplants/conan
|
||||
- conan remote add gitea \
|
||||
https://gitea.badhouseplants.net/api/packages/badhouseplants/conan
|
||||
- conan remote auth gitea
|
||||
- conan upload --remote=gitea pipewire-jack-devel
|
||||
- ./scripts/create
|
||||
backend_options:
|
||||
kubernetes:
|
||||
resources:
|
||||
|
||||
36
packages/jack2-devel/conanfile.py
Normal file
36
packages/jack2-devel/conanfile.py
Normal file
@@ -0,0 +1,36 @@
|
||||
from conan import ConanFile
|
||||
from conan.tools.files import copy, rmdir
|
||||
from conan.tools.scm import Git
|
||||
|
||||
|
||||
class Jack2DevelConan(ConanFile):
|
||||
name = "jack2-devel"
|
||||
version = "1.9.22"
|
||||
|
||||
# No settings/options are necessary, this is header only
|
||||
exports_sources = "include/*"
|
||||
no_copy_source = True
|
||||
# Important, define the package_type
|
||||
package_type = "header-library"
|
||||
|
||||
def package(self):
|
||||
# This will also copy the "include" folder
|
||||
copy(self, "*.h", self.source_folder, self.package_folder)
|
||||
|
||||
def package_info(self):
|
||||
# For header-only packages, libdirs and bindirs are not used
|
||||
# so it's recommended to set those as empty.
|
||||
self.cpp_info.bindirs = []
|
||||
self.cpp_info.libdirs = []
|
||||
self.cpp_info.set_property("pkg_config_name", "jack")
|
||||
|
||||
def source(self):
|
||||
git = Git(self)
|
||||
git.clone(
|
||||
url="https://github.com/jackaudio/jack2.git",
|
||||
target="source"
|
||||
)
|
||||
git.folder = "source"
|
||||
git.checkout(f"v{self.version}")
|
||||
copy(self, "*.h", "source/common/jack", "include")
|
||||
rmdir(self, "source")
|
||||
@@ -1,7 +1,8 @@
|
||||
from conan import ConanFile
|
||||
from conan.tools.files import copy
|
||||
from conan.tools.files import copy, rmdir
|
||||
from conan.tools.scm import Git
|
||||
|
||||
|
||||
class PipewireJackDevelConan(ConanFile):
|
||||
name = "pipewire-jack-devel"
|
||||
version = "1.5.84"
|
||||
@@ -11,10 +12,9 @@ class PipewireJackDevelConan(ConanFile):
|
||||
# Important, define the package_type
|
||||
package_type = "header-library"
|
||||
|
||||
|
||||
def package(self):
|
||||
# This will also copy the "include" folder
|
||||
copy(self, "*.h", "source/pipewire-jack/jack", self.package_folder)
|
||||
copy(self, "*.h", self.source_folder, self.package_folder)
|
||||
|
||||
def package_info(self):
|
||||
# For header-only packages, libdirs and bindirs are not used
|
||||
@@ -23,7 +23,6 @@ class PipewireJackDevelConan(ConanFile):
|
||||
self.cpp_info.libdirs = []
|
||||
self.cpp_info.set_property("pkg_config_name", "jack")
|
||||
|
||||
|
||||
def source(self):
|
||||
git = Git(self)
|
||||
git.clone(
|
||||
@@ -31,4 +30,6 @@ class PipewireJackDevelConan(ConanFile):
|
||||
target="source"
|
||||
)
|
||||
git.folder = "source"
|
||||
git.checkout(f"{self.version}") # tag, branch, or commit
|
||||
git.checkout(f"{self.version}")
|
||||
copy(self, "*.h", "source/pipewire-jack/jack", "include")
|
||||
rmdir(self, "source")
|
||||
6
scripts/create
Executable file
6
scripts/create
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
for dir in $(ls packages); do
|
||||
conan create "packages/${dir}"
|
||||
conan upload --remote=gitea "${dir}"
|
||||
done
|
||||
Reference in New Issue
Block a user