diff --git a/.github/actions/xahau-ga-dependencies/action.yml b/.github/actions/xahau-ga-dependencies/action.yml index b50c1bddb..7ebae4595 100644 --- a/.github/actions/xahau-ga-dependencies/action.yml +++ b/.github/actions/xahau-ga-dependencies/action.yml @@ -76,14 +76,20 @@ runs: ${{ runner.os }}-conan-v${{ inputs.cache_version }}-${{ inputs.compiler-id }}- cache-type: Conan - - name: Configure Conan + - name: Configure Conan cache paths + if: inputs.cache_enabled == 'false' shell: bash + # For self-hosted runners, register cache paths to be used as volumes + # This allows the cache to be shared between containers run: | mkdir -p /.conan-cache/conan2 /.conan-cache/conan2_download /.conan-cache/conan2_sources echo 'core.cache:storage_path=/.conan-cache/conan2' > ~/.conan2/global.conf echo 'core.download:download_cache=/.conan-cache/conan2_download' >> ~/.conan2/global.conf echo 'core.sources:download_cache=/.conan-cache/conan2_sources' >> ~/.conan2/global.conf + - name: Configure Conan + shell: bash + run: | # Create the default profile directory if it doesn't exist mkdir -p ~/.conan2/profiles