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 <root@stephanos.io>
This commit is contained in:
parent
354e290a23
commit
36b0b101d4
36
.github/workflows/codecov.yaml
vendored
36
.github/workflows/codecov.yaml
vendored
|
@ -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}
|
||||
- name: Set up ccache
|
||||
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/action-s3-cache@v1.2.0
|
||||
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
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue