mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 04:21:23 +00:00
Update .gitlab-ci.yml file
autoclean apt cache and change cache key to image name
This commit is contained in:
parent
4b43f92b13
commit
8b45483842
1 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ build-native: # This job runs in the build stage, which runs first.
|
||||||
- cache-$CI_PROJECT_PATH_SLUG-default
|
- cache-$CI_PROJECT_PATH_SLUG-default
|
||||||
paths:
|
paths:
|
||||||
- ccache
|
- ccache
|
||||||
- key: apt
|
- key: apt-$CI_JOB_IMAGE
|
||||||
paths:
|
paths:
|
||||||
- apt-cache
|
- apt-cache
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -50,14 +50,14 @@ build-native: # This job runs in the build stage, which runs first.
|
||||||
- export APT_CACHE_DIR=`pwd`/apt-cache
|
- export APT_CACHE_DIR=`pwd`/apt-cache
|
||||||
- mkdir --parents --verbose $APT_CACHE_DIR/partial/
|
- mkdir --parents --verbose $APT_CACHE_DIR/partial/
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get -o dir::cache::archives="$APT_CACHE_DIR" install --no-install-recommends --yes ccache
|
- pt-get -o dir::cache::archives="$APT_CACHE_DIR" install --no-install-recommends --yes build-essential libsdl2-mixer-dev libpng-dev libcurl4-openssl-dev libgme-dev git libopenmpt-dev gettext ccache
|
||||||
- ccache --zero-stats || true
|
- ccache --zero-stats || true
|
||||||
- ccache --show-stats || true
|
- ccache --show-stats || true
|
||||||
after_script:
|
after_script:
|
||||||
- export CCACHE_DIR="$PWD/ccache"
|
- export CCACHE_DIR="$PWD/ccache"
|
||||||
- ccache --show-stats
|
- ccache --show-stats
|
||||||
|
- apt-get autoclean
|
||||||
script:
|
script:
|
||||||
- apt-get -o dir::cache::archives="$APT_CACHE_DIR" install --no-install-recommends --yes build-essential libsdl2-mixer-dev libpng-dev libcurl4-openssl-dev libgme-dev git libopenmpt-dev gettext
|
|
||||||
- make --directory=src
|
- make --directory=src
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue