@@ -28,17 +28,17 @@ function debug() {
2828# Script starts here
2929
3030# 0. Initialize: set globals and install conan and ninja
31- set -euxo pipefail
31+ set -exo pipefail
3232
3333if [[ " $RUNNER_OS " == " Linux" ]]; then
34- cache_dir=/conan-cache
34+ cache_dir=/tmp/ conan-cache
3535else
3636 cache_dir=$WORKSPACE /conan-cache
3737fi
3838
3939echo " ::group::CIBW_BEFORE_BUILD: pip"
40- pip install conan
41- pip install ninja
40+ pipx install conan
41+ pipx install ninja
4242echo " ::endgroup::"
4343
4444# 1. Clone conancenter at a specific commit and add this cloned repo as a
@@ -50,22 +50,25 @@ echo "::endgroup::"
5050# updates
5151# https://docs.conan.io/2/devops/devops_local_recipes_index.html
5252echo " ::group::CIBW_BEFORE_BUILD: local recipes index repository"
53- git clone https://github.com/conan-io/conan-center-index
54- cd conan-center-index
55- git reset --hard 73bae27b468ae37f5bacd4991d1113aefcf23b2b
56- git clean -df # cleans any untracked files/folders
57- cd ..
58- conan remote add mycenter ./conan-center-index
53+ # Delete conan-center-index if exists
54+ if [ ! -d " conan-center-index" ]; then
55+ git clone https://github.com/conan-io/conan-center-index
56+ cd conan-center-index
57+ git reset --hard 73bae27b468ae37f5bacd4991d1113aefcf23b2b
58+ git clean -df # cleans any untracked files/folders
59+ cd ..
60+ fi
61+ conan remote add mycenter ./conan-center-index --force
5962
6063# 2. Add local recipe repository (as a remote)
61- conan remote add mylocal ./conan-local-recipes
64+ conan remote add mylocal ./conan-local-recipes --force
6265conan list -r mylocal
6366echo " ::endgroup::"
6467
6568if [[ " $RUNNER_OS " == " Linux" ]]; then
6669 # ispc
6770 echo " ::group::CIBW_BEFORE_BUILD: ispc"
68- source /opt/intel/oneapi/ispc/latest/env/vars .sh
71+ source /opt/intel/oneapi/setvars .sh
6972 echo " ::endgroup::"
7073fi
7174
0 commit comments