Skip to content

Commit

Permalink
Trying fo fix cpp-linux-arm64 job.
Browse files Browse the repository at this point in the history
It seems that cleaning the Conan cache is effective.
I have added it as a preventive measure to the cpp-tests/actions.yaml.
This will only be of some effect for the self-hosted runners.
But, since the self-hosted runners use containers that cache Conan packages from previous runs,
and that can cause different type of problems,
it looks like a sensible setup step to perform.
  • Loading branch information
rturrado committed Dec 19, 2023
1 parent 9778acf commit 3574fae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/cpp-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ runs:
shell: ${{ inputs.shell }}
- name: Get latest CMake
uses: lukka/get-cmake@latest
# We clean the Conan cache as a preventive measure for our runs in self-hosted runners
# Self-hosted runners use containers that cache Conan packages from previous runs,
# and that can cause different type of problems
- name: Configure and build
run: |
conan profile detect --force
conan remove -c "*/*"
conan_profile=${{ inputs.conan_profile }}
lowercase_conan_profile=$(echo ${conan_profile} | tr '[:upper:]' '[:lower:]')
conan build . -pr=conan/profiles/${lowercase_conan_profile} -b missing
Expand Down

0 comments on commit 3574fae

Please sign in to comment.