Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ RUN apt-get update && \
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8

# Install python packages
# Install needed python packages
RUN pip3 install conan sphinx_rtd_theme breathe --break-system-packages
13 changes: 7 additions & 6 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: Conan Package

on:
push:
branches: [ main ]
tags: [ "v*" ] # Nur Tags, die mit v beginnen (z.B. v1.2.3)
pull_request:
tags: [ "v*" ]
workflow_dispatch:

jobs:
build-and-publish:
Expand All @@ -19,9 +18,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # wichtig, damit Tags verfügbar sind
fetch-depth: 0

# Version aus Git-Tag ableiten
- name: Extract version from tag
id: vars
run: |
Expand All @@ -45,7 +43,10 @@ jobs:

- name: Create Conan package
run: |
conan create . --version=${{ steps.vars.outputs.version }} --user=${{ github.actor }} --channel=stable
conan profile detect --force
conan create . --user=${{ github.repository_owner }} --channel=stable
env:
CONAN_REF_VERSION: ${{ steps.vars.outputs.version }}

- name: Upload Conan package
run: |
Expand Down
3 changes: 2 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import os
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout, CMakeDeps


class EmbeddedLibRecipe(ConanFile):
name = "embeddedlib"
version = "0.1.0"
version = os.getenv("CONAN_REF_VERSION", "0.0.0")
package_type = "library"

# Optional metadata
Expand Down