diff --git a/docker/Dockerfile b/docker/Dockerfile index b82bc20..dd7c10d 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -20,7 +20,7 @@ RUN apt-get update \ && apt-get update \ && apt-get install --no-install-recommends -y \ build-essential gfortran \ - libcfitsio-dev libreadline-dev libvpx-dev libgsl0-dev \ + libcfitsio-dev libreadline-dev libvpx-dev \ netpbm libnetpbm10-dev FROM deps as builder diff --git a/github-actions/install-dep-gsl/action.yml b/github-actions/install-dep-gsl/action.yml new file mode 100644 index 0000000..580a43b --- /dev/null +++ b/github-actions/install-dep-gsl/action.yml @@ -0,0 +1,20 @@ +name: Install GSL +runs: + using: "composite" + steps: + - name: Install GSL (via apt-get) + shell: bash + run: | + if ${{ toJSON( runner.os == 'Linux' ) }}; then + echo "::group::Install GSL (via apt-get)" + sudo apt-get -y update && sudo apt-get install --no-install-recommends -y libgsl0-dev + echo "::endgroup::" + fi + - name: Install GSL (via brew) + shell: bash + run: | + if ${{ toJSON( runner.os == 'macOS' ) }}; then + echo "::group::Install GSL (via brew)" + brew install gsl + echo "::endgroup::" + fi diff --git a/github-actions/install-dep-pdl-dep/action.yml b/github-actions/install-dep-pdl-dep/action.yml index 0f086a9..0470007 100644 --- a/github-actions/install-dep-pdl-dep/action.yml +++ b/github-actions/install-dep-pdl-dep/action.yml @@ -8,12 +8,12 @@ runs: if ${{ toJSON( runner.os == 'Linux' ) }}; then echo "::group::Install main PDL deps (via apt-get)" sudo apt-get -y update && \ - sudo apt-get install --no-install-recommends -y build-essential libcfitsio-dev libreadline-dev libvpx-dev libgsl0-dev netpbm libnetpbm10-dev + sudo apt-get install --no-install-recommends -y build-essential libcfitsio-dev libreadline-dev libvpx-dev netpbm libnetpbm10-dev echo "::endgroup::" elif ${{ toJSON( runner.os == 'macOS' ) }}; then echo "::group::Install main PDL deps (via brew)" brew update - HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install netpbm gsl + HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install netpbm echo "::endgroup::" fi - name: Install extra optional main PDL deps diff --git a/regression-vagrant/install-pdl b/regression-vagrant/install-pdl index e44aef0..642e9fc 100755 --- a/regression-vagrant/install-pdl +++ b/regression-vagrant/install-pdl @@ -6,7 +6,7 @@ function start() { sudo apt-get update sudo apt-get install -y build-essential libx11-dev pgplot5 libplplot-dev libvpx-dev libxpm-dev libcfitsio3-dev libreadline-dev if [ "$DISABLE_FORTRAN" != 1 ]; then sudo apt-get install -y gfortran; fi # set DISABLE_FOTRAN = 1 to not install gfortran - sudo apt-get install -y libxi-dev libxmu-dev freeglut3-dev libgsl0-dev libnetpbm10-dev # for OpenGL + sudo apt-get install -y libxi-dev libxmu-dev freeglut3-dev libnetpbm10-dev # for OpenGL sudo apt-get install -y xvfb # for OpenGL export PGPLOT_DEV=/NULL cpanm --installdeps PDL || ( cat ~/.cpanm/build.log && false )