diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc435c9f..3426b7d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -148,7 +148,13 @@ 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 @@ -156,6 +162,7 @@ jobs: make -j2 sudo make install + - name: Deps-update-ld-cache shell: bash run: sudo ldconfig