mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 10:26:52 +08:00
github actions decrease ccache max_size selectively
This commit is contained in:
@@ -46,15 +46,15 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.ccache
|
path: ~/.ccache
|
||||||
key: tests_${{matrix.ubuntu_release}}-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
|
key: ${{matrix.config}}-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
|
||||||
restore-keys: tests_${{matrix.ubuntu_release}}-ccache-
|
restore-keys: ${{matrix.config}}-ccache-
|
||||||
- name: setup ccache
|
- name: setup ccache
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ccache
|
mkdir -p ~/.ccache
|
||||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||||
echo "max_size = 100M" >> ~/.ccache/ccache.conf
|
echo "max_size = 20M" >> ~/.ccache/ccache.conf
|
||||||
ccache -s
|
ccache -s
|
||||||
ccache -z
|
ccache -z
|
||||||
- name: check environment
|
- name: check environment
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||||
echo "max_size = 100M" >> ~/.ccache/ccache.conf
|
echo "max_size = 20M" >> ~/.ccache/ccache.conf
|
||||||
ccache -s
|
ccache -s
|
||||||
ccache -z
|
ccache -z
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ jobs:
|
|||||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||||
echo "max_size = 100M" >> ~/.ccache/ccache.conf
|
echo "max_size = 40M" >> ~/.ccache/ccache.conf
|
||||||
ccache -s
|
ccache -s
|
||||||
ccache -z
|
ccache -z
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||||
echo "max_size = 100M" >> ~/.ccache/ccache.conf
|
echo "max_size = 40M" >> ~/.ccache/ccache.conf
|
||||||
ccache -s
|
ccache -s
|
||||||
ccache -z
|
ccache -z
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||||
echo "max_size = 100M" >> ~/.ccache/ccache.conf
|
echo "max_size = 40M" >> ~/.ccache/ccache.conf
|
||||||
ccache -s
|
ccache -s
|
||||||
ccache -z
|
ccache -z
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ jobs:
|
|||||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||||
echo "max_size = 100M" >> ~/.ccache/ccache.conf
|
echo "max_size = 50M" >> ~/.ccache/ccache.conf
|
||||||
ccache -s
|
ccache -s
|
||||||
ccache -z
|
ccache -z
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ jobs:
|
|||||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||||
echo "max_size = 100M" >> ~/.ccache/ccache.conf
|
echo "max_size = 20M" >> ~/.ccache/ccache.conf
|
||||||
ccache -s
|
ccache -s
|
||||||
ccache -z
|
ccache -z
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ jobs:
|
|||||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||||
echo "max_size = 100M" >> ~/.ccache/ccache.conf
|
echo "max_size = 50M" >> ~/.ccache/ccache.conf
|
||||||
ccache -s
|
ccache -s
|
||||||
ccache -z
|
ccache -z
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user