mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-28 15:11:55 +00:00
Update .gitlab-ci.yml file
cache apt packages, part 3
This commit is contained in:
parent
3ef89e9902
commit
9597a19ecf
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue