mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-21 03:11:03 +00:00
Update .gitlab-ci.yml file
cache apt packages
This commit is contained in:
parent
92f16c8142
commit
3ee5ed2dac
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue