Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-use conan cache for built dependencies #187

Merged
merged 6 commits into from
Dec 2, 2021
Merged

Conversation

csegarragonz
Copy link
Collaborator

@csegarragonz csegarragonz commented Nov 29, 2021

I cherry pick this change from #182, and faasm/faasm#542.

Upon cache hit the tests workflow file runs in under 7'.

@@ -37,8 +37,50 @@ jobs:
- name: "Check C/C++ formatting changes"
run: git diff --exit-code

conan-cache:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See question on #182 re. how large this cache will be and GHA limit on cache size.

@eigenraven
Copy link
Collaborator

@csegarragonz This needs updating to the different cache key generation as now present in #182 to fix the broken hashFiles call

@csegarragonz csegarragonz force-pushed the reuse-conan-cache branch 2 times, most recently from ade7cc1 to 257261d Compare November 30, 2021 11:44
@eigenraven
Copy link
Collaborator

Looks like examples need a separate cache key, as they are building in release mode rather than debug like the other tests.

@csegarragonz csegarragonz force-pushed the reuse-conan-cache branch 2 times, most recently from 6ddc570 to 3443f01 Compare November 30, 2021 19:07
@csegarragonz csegarragonz force-pushed the reuse-conan-cache branch 4 times, most recently from e741fda to 801ba27 Compare December 1, 2021 10:45
Copy link
Collaborator

@eigenraven eigenraven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only a small change needed re. release cache keys, otherwise lgtm

.github/workflows/tests.yml Outdated Show resolved Hide resolved
.github/workflows/tests.yml Outdated Show resolved Hide resolved
.github/workflows/tests.yml Outdated Show resolved Hide resolved
@csegarragonz csegarragonz self-assigned this Dec 1, 2021
Copy link
Collaborator

@Shillaker Shillaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM 👍

@csegarragonz csegarragonz merged commit 0af426c into master Dec 2, 2021
@csegarragonz csegarragonz deleted the reuse-conan-cache branch December 2, 2021 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants