Update .gitlab-ci.yml file

cache apt packages, part 3
This commit is contained in:
Alam Ed Arias 2023-10-11 04:37:01 +00:00
parent 3ef89e9902
commit 9597a19ecf

View file

@ -38,7 +38,7 @@ build-native: # This job runs in the build stage, which runs first.
- ccache
- key: apt
paths:
- /var/cache/apt/
- apt
artifacts:
paths:
- "bin/*"
@ -47,6 +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
- echo Dir::Cache="$PWD/apt" > /etc/apt/apt.conf.d/99cache
- apt-get update
- apt-get install --no-install-recommends --yes ccache
- ccache --zero-stats || true