forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: codecov: Store ccache data in node cache
This commit updates the codecov workflow to store ccache data in the zephyr-runner v2 node cache. Signed-off-by: Stephanos Ioannidis <[email protected]>
- Loading branch information
1 parent
354e290
commit 36b0b10
Showing
1 changed file
with
10 additions
and
26 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 |
---|---|---|
|
@@ -29,6 +29,8 @@ jobs: | |
normalized: 'qemu_x86' | ||
- platform: 'unit_testing' | ||
normalized: 'unit_testing' | ||
env: | ||
CCACHE_DIR: /node-cache/ccache-zephyr | ||
steps: | ||
- name: Apply container owner mismatch workaround | ||
run: | | ||
|
@@ -72,30 +74,12 @@ jobs: | |
echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV | ||
- name: Prepare ccache keys | ||
id: ccache_cache_prop | ||
shell: cmake -P {0} | ||
run: | | ||
string(REPLACE "/" "_" repo ${{github.repository}}) | ||
string(REPLACE "-" "_" repo2 ${repo}) | ||
file(APPEND $ENV{GITHUB_OUTPUT} "repo=${repo2}\n") | ||
- name: use cache | ||
id: cache-ccache | ||
uses: zephyrproject-rtos/[email protected] | ||
with: | ||
key: ${{ steps.ccache_cache_prop.outputs.repo }}-${{github.event_name}}-${{matrix.platform}}-codecov-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 | ||
- name: Set up ccache | ||
run: | | ||
mkdir -p /github/home/.cache | ||
test -d github/home/.cache/ccache && mv github/home/.cache/ccache /github/home/.cache/ccache | ||
ccache -M 10G -s | ||
mkdir -p ${CCACHE_DIR} | ||
ccache -M 10G | ||
ccache -p | ||
ccache -z -s -vv | ||
- name: Run Tests with Twister (Push) | ||
continue-on-error: true | ||
|
@@ -108,10 +92,10 @@ jobs: | |
ls -la | ||
./scripts/twister -i --force-color -N -v --filter runnable -p ${{ matrix.platform }} --coverage -T tests --coverage-tool gcovr -xCONFIG_TEST_EXTRA_STACK_SIZE=4096 -e nano | ||
- name: ccache stats post | ||
- name: Print ccache stats | ||
if: always() | ||
run: | | ||
ccache -s | ||
ccache -p | ||
ccache -s -vv | ||
- name: Rename coverage files | ||
if: always() | ||
|