How do I add Linux library dependencies to github actions

Hello,

I have created this package to house functions that I find useful at the link below. I am moving from travis.ci to github actions. The action is failing on Linux because it does not have the ssh package installed, which I assume is because the Linux dependencies for the ssh package are not being installed.

In my travis yml I used this to resovle this issue:

before_install:
  - sudo apt update
  - sudo apt-get update
  - sudo apt-get -y install libssh-dev #package ssh dependency

How do I resolve it in github actions.

Thanks!

Doing a little research, I found the site below:

I added the code from the travis yaml in this section in the github action to solve my issue:

      - name: Install system dependencies
        if: runner.os == 'Linux'
        run: |
          sudo apt update
          sudo apt-get update
          sudo apt-get -y install libssh-dev #package ssh dependency
          while read -r cmd
          do
            eval sudo $cmd
          done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.