Changeset View
Changeset View
Standalone View
Standalone View
.gitlab-ci.yml
| Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | cache: | ||||
| paths: | paths: | ||||
| - src/js/node_modules | - src/js/node_modules | ||||
| .build: | .build: | ||||
| stage: build | stage: build | ||||
| rules: *build-rules | rules: *build-rules | ||||
| # Use ccache, see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/240/diffs | # Use ccache, see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/240/diffs | ||||
| before_script: | before_script: | ||||
| # Prevent removing of downloaded archives, because we are caching it | |||||
| # https://gitlab.com/gitlab-org/gitlab-runner/-/issues/991#note_126864314 | |||||
| - rm -f /etc/apt/apt.conf.d/docker-clean || true | |||||
| - echo "dir::cache::archives $CI_PROJECT_DIR/apt-cache/archives; dir::state::lists $CI_PROJECT_DIR/apt-cache/lists;" > /etc/apt/apt.conf.d/gitlab-cache | |||||
| - mkdir -pv "$CI_PROJECT_DIR/apt-cache/archives/partial" "$CI_PROJECT_DIR/apt-cache/lists/partial" | |||||
| - find "$CI_PROJECT_DIR/apt-cache/" || true | |||||
| - apt-get -y update | - apt-get -y update | ||||
| - DEBIAN_FRONTEND=noninteractive apt-get -y install ccache | - DEBIAN_FRONTEND=noninteractive apt-get -y install ccache | ||||
| - export CCACHE_COMPILERCHECK=content | - export CCACHE_COMPILERCHECK=content | ||||
| - export CCACHE_BASEDIR="$CI_PROJECT_DIR" | - export CCACHE_BASEDIR="$CI_PROJECT_DIR" | ||||
| - export CCACHE_DIR="$CI_PROJECT_DIR/ccache" | - export CCACHE_DIR="$CI_PROJECT_DIR/ccache" | ||||
| - export PATH="/usr/lib/ccache:$PATH" | - export PATH="/usr/lib/ccache:$PATH" | ||||
| - ccache --zero-stats || true | - ccache --zero-stats || true | ||||
| - ccache --show-stats || true | - ccache --show-stats || true | ||||
| after_script: | after_script: | ||||
| - DEBIAN_FRONTEND=noninteractive apt-get -y autoclean | |||||
| - find "$CI_PROJECT_DIR/apt-cache/" | |||||
| - export CCACHE_DIR="$CI_PROJECT_DIR/ccache" | - export CCACHE_DIR="$CI_PROJECT_DIR/ccache" | ||||
| - ccache --show-stats | - ccache --show-stats | ||||
| cache: | cache: | ||||
| key: $CI_JOB_NAME | - key: $CI_JOB_NAME | ||||
| paths: | paths: | ||||
| - ccache/ | - ccache/ | ||||
| # This can be shared between jobs because we install the same set of packages regardless of the type of the build | |||||
| - key: apt-archive-cache | |||||
| paths: | |||||
| - apt-cache/ | |||||
| .build-debug: | .build-debug: | ||||
| extends: .build | extends: .build | ||||
| script: | | script: | | ||||
| env JOBS=2 ./packaging/GNU-Linux/appimage/build.sh | env JOBS=2 ./packaging/GNU-Linux/appimage/build.sh | ||||
| artifacts: | artifacts: | ||||
| paths: | paths: | ||||
| - kazv-Debug.AppImage | - kazv-Debug.AppImage | ||||
| ▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines | |||||