6262 python --version
6363 ninja --version
6464 brew install buf
65- python -m pip install conan
6665
6766 - name : Create package
6867 run : |
@@ -116,7 +115,6 @@ jobs:
116115 less \
117116 ninja-build \
118117 python3 \
119- python3-pip \
120118 software-properties-common \
121119 sudo \
122120 wget \
@@ -127,7 +125,10 @@ jobs:
127125 apt-get update
128126 apt-get -y install cmake=3.25.2-0kitware1ubuntu22.04.1 cmake-data=3.25.2-0kitware1ubuntu22.04.1
129127
130- pip install conan
128+ - name : Setup conan
129+ uses : conan-io/setup-conan@v1
130+ with :
131+ cache_packages : true
131132
132133 - name : Create package
133134 shell : bash
@@ -200,16 +201,19 @@ jobs:
200201
201202 apt-get -y --no-install-recommends install -t bullseye-backports cmake
202203
203- # Note bullseye can use regular pip + conan no problem, but
204- # bookworm is a managed environment, so we use a venv in both because it is more
205- # trouble to bifurcate them.
204+ - name : Setup python
205+ uses : actions/setup-python@v5
206+ with :
207+ python-version : ' 3.10'
208+
209+ - name : Setup conan
210+ uses : conan-io/setup-conan@v1
211+ with :
212+ cache_packages : true
213+
206214 - name : Install conan in venv and create package
207215 shell : bash
208216 run : |
209- python3 -m venv ./conan_venv
210- source ./conan_venv/bin/activate
211-
212- pip install conan
213217 conan profile detect
214218
215219 conan install -r conancenter --update \
@@ -234,16 +238,17 @@ jobs:
234238 ref : ${{ needs.prepare.outputs.sha }}
235239
236240 - name : Install dependencies
237- run : choco install -y conan git
241+ run : choco install -y git
242+
243+ - name : Setup conan
244+ uses : conan-io/setup-conan@v1
245+ with :
246+ cache_packages : true
247+ home : c:/cache
238248
239249 - name : Create package
240250 shell : powershell
241251 run : |
242- Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
243- refreshenv
244252 conan profile detect
245253 conan create . --build=missing -o "&:shared=False"
246- env :
247- CONAN_USER_HOME : c:/cache
248- CONAN_USER_HOME_SHORT : c:/cache/conan_shortpaths
249254
0 commit comments