4747 brew install python ninja buf
4848 python -m pip install conan
4949
50- - name : Build
50+ - name : Create package
5151 run : |
5252 # `buf` tries to read a CLI config file that we don't actually use located at
5353 # ~/.config/buf/config.yaml. We don't always have permission to access this
5656 # more details.
5757 export BUF_CONFIG_DIR=$(mktemp -d)
5858 conan profile detect
59- conan create . --build=missing
59+ conan create . --build=missing -s compiler.cppstd=17
6060
6161 build_linux_ubuntu_jammy :
6262 if : github.repository_owner == 'viamrobotics'
@@ -114,7 +114,7 @@ jobs:
114114 shell : bash
115115 run : |
116116 conan profile detect
117- conan create . --build=missing
117+ conan create . --build=missing -s compiler.cppstd=14
118118
119119 build_linux_debian :
120120 if : github.repository_owner == 'viamrobotics'
@@ -164,12 +164,11 @@ jobs:
164164 ninja-build \
165165 python3 \
166166 python3-pip \
167+ python3-venv \
167168 software-properties-common \
168169 sudo \
169170 wget
170171
171- pip install conan
172-
173172 - name : Update CMake for bullseye
174173 if : ${{ matrix.image == 'debian:bullseye' }}
175174 run : |
@@ -180,8 +179,15 @@ jobs:
180179
181180 apt-get -y --no-install-recommends install -t bullseye-backports cmake
182181
183- - name : Create package
182+ # Note bullseye can use regular pip + conan no problem, but
183+ # bookworm is a managed environment, so we use a venv in both because it is more
184+ # trouble to bifurcate them.
185+ - name : Install conan in venv and create package
184186 shell : bash
185187 run : |
188+ python3 -m venv ./conan_venv
189+ source ./conan_venv/bin/activate
190+
191+ pip install conan
186192 conan profile detect
187- conan create . --build=missing
193+ conan create . --build=missing -s compiler.cppstd=14
0 commit comments