Update .gitlab-ci.yml file

cache the ccache
This commit is contained in:
Logan Arias 2023-10-11 00:40:49 +00:00 committed by Logan-A
parent 4adce8e3cd
commit b3273a899a

View file

@ -23,15 +23,22 @@ stages: # List of stages for jobs, and their order of execution
build-job: # This job runs in the build stage, which runs first. build-job: # This job runs in the build stage, which runs first.
stage: build stage: build
image: debian image: debian
cache:
- key:
files:
- .ccache/stats
paths:
- .ccache
artifacts: artifacts:
paths: paths:
- "bin/*" - "bin/*"
script: script:
- ""
- "apt update" - "apt update"
- "apt-get install --no-install-recommends --yes build-essential libsdl2-mixer-dev libpng-dev libcurl4-openssl-dev libgme-dev git libopenmpt-dev gettext ccache" - "apt-get install --no-install-recommends --yes build-essential libsdl2-mixer-dev libpng-dev libcurl4-openssl-dev libgme-dev git libopenmpt-dev gettext ccache"
- "ccache --max-size 10M"
- "CC=\"ccache gcc\" make --directory=src" - "CC=\"ccache gcc\" make --directory=src"
- "ccache --show-stats"