Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit is contained in:
24
.woodpecker.yaml
Normal file
24
.woodpecker.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
steps:
|
||||||
|
- name: Push pipewire-jack-library
|
||||||
|
image: gitea.badhouseplants.net/badhouseplants/container-builder:latest
|
||||||
|
environment:
|
||||||
|
CONAN_PASSWORD:
|
||||||
|
from_secret: GITEA_PACKAGE_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 auth gitea
|
||||||
|
- conan upload --remote=gitea "${CI_REPO_NAME}"
|
||||||
|
backend_options:
|
||||||
|
kubernetes:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 700Mi
|
||||||
|
cpu: 1000m
|
||||||
|
limits:
|
||||||
|
cpu: 1000m
|
||||||
31
pipewire-jack-devel/conanfile.py
Normal file
31
pipewire-jack-devel/conanfile.py
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
from conan import ConanFile
|
||||||
|
from conan.tools.files import copy
|
||||||
|
from conan.tools.scm import Git
|
||||||
|
|
||||||
|
class PipewireJackDevelConan(ConanFile):
|
||||||
|
name = "pipewire-jack-devel"
|
||||||
|
version = "1.5.84"
|
||||||
|
# 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", "source/pipewire-jack/jack", 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 = []
|
||||||
|
|
||||||
|
def source(self):
|
||||||
|
git = Git(self)
|
||||||
|
git.clone(
|
||||||
|
url="https://gitlab.freedesktop.org/pipewire/pipewire.git",
|
||||||
|
target="source"
|
||||||
|
)
|
||||||
|
git.folder = "source"
|
||||||
|
git.checkout(f"{self.version}") # tag, branch, or commit
|
||||||
Reference in New Issue
Block a user