Skip to content

Commit c972e81

Browse files
committed
Use conda to install build dependencies instead of apt
Make it more cross platform. Try `conda install cmake` for now.
1 parent bd0a9d8 commit c972e81

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ci_tests.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,15 @@ jobs:
120120
python-version: ${{ matrix.python-version }}
121121
channels: conda-forge
122122

123+
# Install build dependencies from conda-forge
124+
- name: Install build dependencies
125+
shell: bash -l {0}
126+
run: conda install cmake
127+
123128
# Install GMT master branch
124129
- name: Install GMT from master
125130
shell: bash -l {0}
126-
run: |
127-
echo "::add-path::$GITHUB_WORKSPACE/gmt/bin"
128-
apt -qq update
129-
DEBIAN_FRONTEND=noninteractive apt install -y cmake xdg-utils libcurl4-openssl-dev
130-
curl https://raw.githubusercontent.com/GenericMappingTools/gmt/master/ci/build-gmt-master.sh | bash
131+
run: curl https://raw.githubusercontent.com/GenericMappingTools/gmt/master/ci/build-gmt-master.sh | bash
131132

132133
# Cache the ${HOME}/.gmt directory, for docs and testing
133134
- name: Cache GMT directory

0 commit comments

Comments
 (0)