Skip to content
Open
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
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@ on:
- devel

jobs:
git-branch:
name: Get git branch
runs-on: ubuntu-latest
outputs:
branch-name: ${{ steps.get-git-branch.outputs.branch-name }}
steps:
- id: get-git-branch
run: |
if ${{ github.event_name == 'push' }}
then export GIT_BRANCH=`echo ${{ github.ref }} | cut -d'/' -f 3`
else
export GIT_BRANCH=${{ github.base_ref }}
fi
echo "branch-name=$GIT_BRANCH" >> $GITHUB_OUTPUT

build-unix:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
Expand Down Expand Up @@ -335,3 +350,26 @@ jobs:
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTS=ON ..
make
ctest --output-on-failure

build-rpm:
name: RPM build, Rocky 9
runs-on: ubuntu-latest
needs: git-branch
container:
image: rockylinux:9
steps:
- name: Deps-packages
run: |
dnf -y --enablerepo=crb --enablerepo=devel install pip cmake gcc git doxygen libcmocka-devel pcre2-devel libcbor-devel
pip install apkg

- name: Clone-repo
run: |
git clone -b ${{ needs.git-branch.outputs.branch-name }} https://github.com/CESNET/libyang.git

- name: Build-and-install-package
run: |
apkg system-setup
cd libyang
apkg build
apkg install
2 changes: 2 additions & 0 deletions distro/pkg/deb/control
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Build-Depends: cmake,
debhelper (>= 10),
libcmocka-dev <!nocheck>,
libpcre2-dev,
libcbor-dev,
pkg-config
Vcs-Browser: https://github.com/CESNET/libyang/tree/master
Vcs-Git: https://github.com/CESNET/libyang.git
Expand All @@ -23,6 +24,7 @@ Description: parser toolkit for IETF YANG data modeling - runtime

Package: libyang-dev
Depends: libpcre2-dev,
libcbor-dev,
libyang5 (= ${binary:Version}),
${misc:Depends}
Conflicts: libyang2-dev
Expand Down
1 change: 1 addition & 0 deletions distro/pkg/rpm/libyang.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Summary: YANG modules for libyang
Summary: Development files for libyang
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: pcre2-devel
Requires: libcbor-devel

%package devel-doc
Summary: Documentation of libyang API
Expand Down
Loading