Skip to content

Commit 9ffd8c3

Browse files
committed
Merge branch 'tk/macos-pip-install-conan' into tk/decomposition-refactor-forward-backward
2 parents 79b12a5 + d342489 commit 9ffd8c3

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/cmake.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,28 @@ jobs:
7373
run: |
7474
sudo apt update
7575
sudo apt install libtiff5-dev openmpi-bin libopenmpi-dev libeigen3-dev libyaml-cpp-dev ccache
76-
pip install conan
7776
7877
- name: Install Dependencies on MacOS
7978
if: ${{ contains(matrix.os, 'macos') }}
8079
run: |
8180
brew update
82-
brew install libtiff open-mpi libyaml ccache conan
81+
brew install libtiff open-mpi libyaml ccache
8382
echo "CMAKE_PREFIX_PATH=/usr/local/opt/libomp" >> $GITHUB_ENV
8483
84+
- name: Select Python 3.10
85+
# otherwise turtlebrowser/get-conan@v1.1 fails on macos-12
86+
# ref: https://github.com/turtlebrowser/get-conan/issues/4
87+
uses: actions/setup-python@v4
88+
with:
89+
python-version: '3.10'
90+
91+
- name: Install Conan
92+
id: conan
93+
uses: turtlebrowser/get-conan@main
94+
95+
- name: Conan version
96+
run: echo "${{ steps.conan.outputs.version }}"
97+
8598
- name: Prepare ccache timestamp
8699
id: ccache_cache_timestamp
87100
shell: cmake -P {0}

0 commit comments

Comments
 (0)