Update .gitlab-ci.yml file

cache apt packages
This commit is contained in:
Alam Ed Arias 2023-10-11 04:25:05 +00:00
parent 92f16c8142
commit 3ee5ed2dac

View file

@ -36,6 +36,9 @@ build-native: # This job runs in the build stage, which runs first.
- cache-$CI_PROJECT_PATH_SLUG-default
paths:
- ccache
- key: apt
paths:
- /var/cache/apt
artifacts:
paths:
- "bin/*"
@ -44,7 +47,7 @@ build-native: # This job runs in the build stage, which runs first.
- export CCACHE_BASEDIR="$PWD"
- export CCACHE_DIR="$PWD/ccache"
- export CCACHE_COMPILERCHECK=content
- apt update
- apt-get update
- apt-get install --no-install-recommends --yes ccache
- ccache --zero-stats || true
- ccache --show-stats || true