Skip to content

Commit 3f136bb

Browse files
committed
Use conda to install build dependencies instead of apt
Make it more cross platform.
1 parent 0958502 commit 3f136bb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/ci_tests.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,15 @@ jobs:
123123
python-version: ${{ matrix.python-version }}
124124
channels: conda-forge
125125

126+
# Install build dependencies from conda-forge
127+
- name: Install build dependencies
128+
shell: bash -l {0}
129+
run: conda install cmake libblas libcblas liblapack fftw gdal ghostscript libnetcdf hdf5 zlib curl pcre gshhg-gmt dcw-gmt
130+
126131
# Install GMT master branch
127132
- name: Install GMT from master
128133
shell: bash -l {0}
129-
run: |
130-
echo "::add-path::$GITHUB_WORKSPACE/gmt/bin"
131-
apt -qq update
132-
DEBIAN_FRONTEND=noninteractive apt install -y cmake xdg-utils libcurl4-openssl-dev
133-
curl https://raw.githubusercontent.com/GenericMappingTools/gmt/master/ci/build-gmt-master.sh | bash
134+
run: curl https://raw.githubusercontent.com/GenericMappingTools/gmt/master/ci/build-gmt-master.sh | bash
134135

135136
# Cache the ${HOME}/.gmt directory, for docs and testing
136137
- name: Cache GMT directory
@@ -140,7 +141,7 @@ jobs:
140141
path: |
141142
~/.gmt/cache
142143
~/.gmt/server
143-
key: cache2-gmt-${{ runner.os }}-20200609
144+
key: cache2-gmt-${{ runner.os }}-20200629
144145
restore-keys: cache2-gmt-refs/heads/master-
145146

146147
# Workaround for the timeouts of 'gmt which' on Linux and Windows

0 commit comments

Comments
 (0)