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'
|
normalized: 'qemu_x86'
|
||||||
- platform: 'unit_testing'
|
- platform: 'unit_testing'
|
||||||
normalized: 'unit_testing'
|
normalized: 'unit_testing'
|
||||||
|
env:
|
||||||
|
CCACHE_DIR: /node-cache/ccache-zephyr
|
||||||
steps:
|
steps:
|
||||||
- name: Apply container owner mismatch workaround
|
- name: Apply container owner mismatch workaround
|
||||||
run: |
|
run: |
|
||||||
|
@ -72,30 +74,12 @@ jobs:
|
||||||
|
|
||||||
echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
|
echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Prepare ccache keys
|
- name: Set up ccache
|
||||||
id: ccache_cache_prop
|
|
||||||
shell: cmake -P {0}
|
|
||||||
run: |
|
run: |
|
||||||
string(REPLACE "/" "_" repo ${{github.repository}})
|
mkdir -p ${CCACHE_DIR}
|
||||||
string(REPLACE "-" "_" repo2 ${repo})
|
ccache -M 10G
|
||||||
file(APPEND $ENV{GITHUB_OUTPUT} "repo=${repo2}\n")
|
ccache -p
|
||||||
|
ccache -z -s -vv
|
||||||
- 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
|
|
||||||
|
|
||||||
- name: Run Tests with Twister (Push)
|
- name: Run Tests with Twister (Push)
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
@ -108,10 +92,10 @@ jobs:
|
||||||
ls -la
|
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
|
./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: |
|
run: |
|
||||||
ccache -s
|
ccache -s -vv
|
||||||
ccache -p
|
|
||||||
|
|
||||||
- name: Rename coverage files
|
- name: Rename coverage files
|
||||||
if: always()
|
if: always()
|
||||||
|
|
Loading…
Reference in a new issue