-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Fix setup of ccache in twister workflow
Path for cache directory has changed, adapt workflow accordingly. Signed-off-by: Anas Nashif <[email protected]>
- Loading branch information
Showing
3 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,15 +86,15 @@ jobs: | |
uses: zephyrproject-rtos/[email protected] | ||
with: | ||
key: ${{ steps.ccache_cache_timestamp.outputs.repo }}-${{ github.ref_name }}-clang-${{ matrix.platform }}-ccache | ||
path: /github/home/.ccache | ||
path: /github/home/.cache/ccache | ||
aws-s3-bucket: ccache.zephyrproject.org | ||
aws-access-key-id: ${{ vars.AWS_CCACHE_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_CCACHE_SECRET_ACCESS_KEY }} | ||
aws-region: us-east-2 | ||
|
||
- name: ccache stats initial | ||
run: | | ||
test -d github/home/.ccache && rm -rf /github/home/.ccache && mv github/home/.ccache /github/home/.ccache | ||
test -d github/home/.cache/ccache && rm -rf /github/home/.cache/ccache && mv github/home/.cache/ccache /github/home/.cache/ccache | ||
ccache -M 10G -s | ||
- name: Run Tests with Twister | ||
|
@@ -119,6 +119,7 @@ jobs: | |
- name: ccache stats post | ||
run: | | ||
ccache -s | ||
ccache -p | ||
- name: Upload Unit Test Results | ||
if: always() && steps.twister.outputs.report_needed != 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,15 +70,15 @@ jobs: | |
uses: zephyrproject-rtos/[email protected] | ||
with: | ||
key: ${{ steps.ccache_cache_prop.outputs.repo }}-${{github.event_name}}-${{matrix.platform}}-codecov-ccache | ||
path: /github/home/.ccache | ||
path: /github/home/.cache/ccache | ||
aws-s3-bucket: ccache.zephyrproject.org | ||
aws-access-key-id: ${{ vars.AWS_CCACHE_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_CCACHE_SECRET_ACCESS_KEY }} | ||
aws-region: us-east-2 | ||
|
||
- name: ccache stats initial | ||
run: | | ||
test -d github/home/.ccache && mv github/home/.ccache /github/home/.ccache | ||
test -d github/home/.cache/ccache && mv github/home/.cache/ccache /github/home/.cache/ccache | ||
ccache -M 10G -s | ||
- name: Run Tests with Twister (Push) | ||
|
@@ -100,6 +100,7 @@ jobs: | |
- name: ccache stats post | ||
run: | | ||
ccache -s | ||
ccache -p | ||
- name: Upload Coverage Results | ||
if: always() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters