Skip to content

Commit

Permalink
build-conan-deps.yml: install conan in case of any cache miss
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed Oct 16, 2024
1 parent 069ef5f commit 85a6c09
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/build-conan-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,17 @@ jobs:
python-version: "3.12"

- name: Update build deps
if: steps.cache-conan.outputs.cache-hit != 'true'
if: |
steps.cache-conan.outputs.cache-hit != 'true' ||
steps.cache-cmake-dbg.outputs.cache-hit != 'true' ||
steps.cache-cmake-rel.outputs.cache-hit != 'true'
run: pip install "conan==${{ inputs.conan-version }}"

- name: Configure Conan
if: steps.cache-conan.outputs.cache-hit != 'true'
if: |
steps.cache-conan.outputs.cache-hit != 'true' ||
steps.cache-cmake-dbg.outputs.cache-hit != 'true' ||
steps.cache-cmake-rel.outputs.cache-hit != 'true'
run: conan profile detect --force

- name: Clean Conan cache (pre-build)
Expand Down Expand Up @@ -496,11 +502,17 @@ jobs:
python-version: "3.12"

- name: Update build deps
if: steps.cache-conan.outputs.cache-hit != 'true'
if: |
steps.cache-conan.outputs.cache-hit != 'true' ||
steps.cache-cmake-dbg.outputs.cache-hit != 'true' ||
steps.cache-cmake-rel.outputs.cache-hit != 'true'
run: pip install "conan==${{ inputs.conan-version }}"

- name: Configure Conan
if: steps.cache-conan.outputs.cache-hit != 'true'
if: |
steps.cache-conan.outputs.cache-hit != 'true' ||
steps.cache-cmake-dbg.outputs.cache-hit != 'true' ||
steps.cache-cmake-rel.outputs.cache-hit != 'true'
run: |
conan profile detect --force
conan_profile="$(conan profile path default)"
Expand Down

0 comments on commit 85a6c09

Please sign in to comment.