Skip to content

chore: actions add cache - #2088

Merged
AlexStocks merged 1 commit into
OpenAtomFoundation:unstablefrom
baerwang:actions/cache
Nov 1, 2023
Merged

chore: actions add cache#2088
AlexStocks merged 1 commit into
OpenAtomFoundation:unstablefrom
baerwang:actions/cache

Conversation

@baerwang

Copy link
Copy Markdown
Contributor

AlexStocks
AlexStocks previously approved these changes Oct 31, 2023
uses: actions/cache@v3
id: cache-ubuntu
with:
key: ${{ runner.os }}-build-ubuntu-${{ hashFiles('**/CMakeLists.txt') }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why is CMakeLists used here to calculate hash values?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

下面build命令行cmake用到cmakelists,cmakelist改变不能使用原来的缓存了

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

好的;另外,这里我还有一个疑问,你这里缓存了整个workspace,会不会导致每次新增修改的代码,被缓存中的代码给覆盖掉,最终导致每次编译实际上都是用的旧的代码

@AlexStocks
AlexStocks merged commit 976d311 into OpenAtomFoundation:unstable Nov 1, 2023
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
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