Skip to content

Commit

Permalink
workflow UPDATE clone ln2's libnetconf3 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
roman committed Nov 2, 2023
1 parent 28fc82a commit c86221a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- devel

env:
DEFAULT_PACKAGES: libcmocka-dev zlib1g-dev libssh-dev libssl-dev libpam0g-dev
DEFAULT_PACKAGES: libcmocka-dev zlib1g-dev libssh-dev libssl-dev libpam0g-dev libcurl4-openssl-dev

jobs:
git-branch:
Expand Down Expand Up @@ -148,14 +148,21 @@ jobs:
- name: Deps-libnetconf2
shell: bash
run: |
git clone -b ${{ needs.git-branch.outputs.branch-name }} https://github.com/CESNET/libnetconf2.git
if [ "${{ github.event_name }}" == "pull_request" ] && [ "${{ github.base_ref }}" == "devel" ]; then
BRANCH_NAME=libnetconf3
else
BRANCH_NAME=${{ needs.git-branch.outputs.branch-name }}
fi
git clone -b $BRANCH_NAME https://github.com/CESNET/libnetconf2.git
cd libnetconf2
mkdir build
cd build
CC=${{ matrix.config.cc }} cmake -DCMAKE_BUILD_TYPE=${{ matrix.config.build-type }} -DENABLE_TESTS=OFF ..
make -j2
sudo make install
- name: Deps-update-ld-cache
shell: bash
run: sudo ldconfig
Expand Down

0 comments on commit c86221a

Please sign in to comment.