mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
CI: use common ccache environment
and enable CCACHE_SLOPPINESS=file_stat_matches
This commit is contained in:
parent
d8fb6cc522
commit
54208574f0
10
.github/workflows/ccache.env
vendored
Normal file
10
.github/workflows/ccache.env
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
# common ccache env vars for CI
|
||||
export CCACHE_SLOPPINESS=file_stat_matches
|
||||
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
8
.github/workflows/macos_build.yml
vendored
8
.github/workflows/macos_build.yml
vendored
@ -42,13 +42,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-${{matrix.config}} # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: test build ${{matrix.config}}
|
||||
env:
|
||||
CI_BUILD_TARGET: ${{matrix.config}}
|
||||
|
8
.github/workflows/test_chibios.yml
vendored
8
.github/workflows/test_chibios.yml
vendored
@ -67,13 +67,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-${{matrix.config}}-${{ matrix.toolchain }}-${{ matrix.gcc }} # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: test ${{matrix.config}} ${{ matrix.toolchain }} gcc-${{matrix.gcc}}
|
||||
env:
|
||||
CI_BUILD_TARGET: ${{matrix.config}}
|
||||
|
8
.github/workflows/test_coverage.yml
vendored
8
.github/workflows/test_coverage.yml
vendored
@ -46,13 +46,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-${{ matrix.toolchain }}- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: Configure CAN
|
||||
if: ${{ matrix.config == 'sitltest-can'}}
|
||||
run: |
|
||||
|
8
.github/workflows/test_linux_sbc.yml
vendored
8
.github/workflows/test_linux_sbc.yml
vendored
@ -60,13 +60,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: test ${{matrix.config}} ${{ matrix.toolchain }}
|
||||
env:
|
||||
CI_BUILD_TARGET: ${{matrix.config}}
|
||||
|
8
.github/workflows/test_replay.yml
vendored
8
.github/workflows/test_replay.yml
vendored
@ -41,13 +41,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-${{ matrix.toolchain }}- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: test ${{matrix.config}} ${{ matrix.toolchain }}
|
||||
env:
|
||||
CI_BUILD_TARGET: ${{matrix.config}}
|
||||
|
32
.github/workflows/test_sitl_copter.yml
vendored
32
.github/workflows/test_sitl_copter.yml
vendored
@ -38,13 +38,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-${{ matrix.toolchain }}- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: build copter ${{ matrix.toolchain }}
|
||||
shell: bash
|
||||
run: |
|
||||
@ -96,13 +90,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-base- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: test ${{matrix.config}}
|
||||
env:
|
||||
CI_BUILD_TARGET: ${{matrix.config}}
|
||||
@ -157,13 +145,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-base- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: build heli
|
||||
shell: bash
|
||||
run: |
|
||||
@ -203,13 +185,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-base- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: test ${{matrix.config}}
|
||||
env:
|
||||
CI_BUILD_TARGET: ${{matrix.config}}
|
||||
|
16
.github/workflows/test_sitl_periph.yml
vendored
16
.github/workflows/test_sitl_periph.yml
vendored
@ -31,13 +31,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: install 32-bit libraries
|
||||
run: |
|
||||
dpkg --add-architecture i386
|
||||
@ -90,13 +84,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: install 32-bit libraries
|
||||
run: |
|
||||
sudo dpkg --add-architecture i386
|
||||
|
16
.github/workflows/test_sitl_plane.yml
vendored
16
.github/workflows/test_sitl_plane.yml
vendored
@ -38,13 +38,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-${{ matrix.toolchain }}- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: build plane ${{ matrix.toolchain }}
|
||||
shell: bash
|
||||
run: |
|
||||
@ -91,13 +85,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-base- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: test ${{matrix.config}}
|
||||
env:
|
||||
CI_BUILD_TARGET: ${{matrix.config}}
|
||||
|
16
.github/workflows/test_sitl_rover.yml
vendored
16
.github/workflows/test_sitl_rover.yml
vendored
@ -38,13 +38,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-${{ matrix.toolchain }}- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: build rover ${{ matrix.toolchain }}
|
||||
shell: bash
|
||||
run: |
|
||||
@ -91,13 +85,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-base- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: test ${{matrix.config}}
|
||||
env:
|
||||
CI_BUILD_TARGET: ${{matrix.config}}
|
||||
|
16
.github/workflows/test_sitl_sub.yml
vendored
16
.github/workflows/test_sitl_sub.yml
vendored
@ -38,13 +38,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-${{ matrix.toolchain }}- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: build sub ${{ matrix.toolchain }}
|
||||
shell: bash
|
||||
run: |
|
||||
@ -90,13 +84,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-base- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: test ${{matrix.config}}
|
||||
env:
|
||||
CI_BUILD_TARGET: ${{matrix.config}}
|
||||
|
16
.github/workflows/test_sitl_tracker.yml
vendored
16
.github/workflows/test_sitl_tracker.yml
vendored
@ -38,13 +38,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-${{ matrix.toolchain }}- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: build tracker ${{ matrix.toolchain }}
|
||||
shell: bash
|
||||
run: |
|
||||
@ -90,13 +84,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-base- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: test ${{matrix.config}}
|
||||
env:
|
||||
CI_BUILD_TARGET: ${{matrix.config}}
|
||||
|
10
.github/workflows/test_size.yml
vendored
10
.github/workflows/test_size.yml
vendored
@ -43,16 +43,6 @@ jobs:
|
||||
path: ~/.ccache
|
||||
key: ${{github.workflow}}-ccache-${{ matrix.toolchain }}-${{steps.ccache_cache_timestamp.outputs.timestamp}}
|
||||
restore-keys: ${{github.workflow}}-ccache-${{ matrix.toolchain }}- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
|
||||
- name: Build master ${{matrix.config}} ${{ matrix.toolchain }}
|
||||
env:
|
||||
CI_BUILD_TARGET: ${{matrix.config}}
|
||||
|
8
.github/workflows/test_unit_tests.yml
vendored
8
.github/workflows/test_unit_tests.yml
vendored
@ -46,13 +46,7 @@ jobs:
|
||||
restore-keys: ${{github.workflow}}-ccache-${{ matrix.toolchain }}- # restore ccache from either previous build on this branch or on master
|
||||
- name: setup ccache
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
|
||||
echo "compression = true" >> ~/.ccache/ccache.conf
|
||||
echo "compression_level = 6" >> ~/.ccache/ccache.conf
|
||||
echo "max_size = 400M" >> ~/.ccache/ccache.conf
|
||||
ccache -s
|
||||
ccache -z
|
||||
. .github/workflows/ccache.env
|
||||
- name: test ${{matrix.config}} ${{ matrix.toolchain }}
|
||||
env:
|
||||
CI_BUILD_TARGET: ${{matrix.config}}
|
||||
|
Loading…
Reference in New Issue
Block a user