Commit 2d9f5bea authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

gitlab: Use a common configure cache key prefix.

Partially reverts commit 67f2da2a which broke ccache cache as the job configurations were overriding the default cache configuration from .wine-build instead of extending it.
parent a6b58a2c
...@@ -9,7 +9,7 @@ set -Eeuxo pipefail ...@@ -9,7 +9,7 @@ set -Eeuxo pipefail
./tools/make_makefiles ./tools/make_makefiles
autoreconf -f autoreconf -f
cd build cd build64
../configure -q -C --enable-archs=i386,x86_64,aarch64 --with-mingw=clang ../configure -q -C --enable-archs=i386,x86_64,aarch64 --with-mingw=clang
make -s -j$(nproc) make -s -j$(nproc)
cd .. cd ..
...@@ -9,6 +9,13 @@ ...@@ -9,6 +9,13 @@
cache: cache:
- paths: - paths:
- ccache/ - ccache/
- key:
files:
- configure.ac
prefix: $CI_JOB_NAME-config
paths:
- build32/config.cache
- build64/config.cache
before_script: before_script:
- export BASEDIR="$PWD" - export BASEDIR="$PWD"
- export CCACHE_BASEDIR="$BASEDIR" - export CCACHE_BASEDIR="$BASEDIR"
...@@ -28,13 +35,6 @@ build-linux: ...@@ -28,13 +35,6 @@ build-linux:
expire_in: 1 day expire_in: 1 day
paths: paths:
- usr/local/ - usr/local/
cache:
- key:
files:
- configure.ac
paths:
- build32/config.cache
- build64/config.cache
script: script:
- mkdir -p build32 build64 - mkdir -p build32 build64
- git rebase $CI_MERGE_REQUEST_DIFF_BASE_SHA --exec ./tools/gitlab/build-linux - git rebase $CI_MERGE_REQUEST_DIFF_BASE_SHA --exec ./tools/gitlab/build-linux
...@@ -45,14 +45,8 @@ build-clang: ...@@ -45,14 +45,8 @@ build-clang:
extends: .wine-build extends: .wine-build
rules: rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
cache:
- key:
files:
- configure.ac
paths:
- build/config.cache
script: script:
- mkdir -p build - mkdir -p build32 build64
- ./tools/gitlab/build-clang - ./tools/gitlab/build-clang
build-mac: build-mac:
...@@ -61,13 +55,6 @@ build-mac: ...@@ -61,13 +55,6 @@ build-mac:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
tags: tags:
- mac - mac
cache:
- key:
files:
- configure.ac
paths:
- build32/config.cache
- build64/config.cache
artifacts: artifacts:
when: on_failure when: on_failure
paths: paths:
...@@ -107,6 +94,7 @@ build-daily-linux: ...@@ -107,6 +94,7 @@ build-daily-linux:
paths: paths:
- usr/local/ - usr/local/
script: script:
- mkdir -p build32 build64
- ./tools/gitlab/build-linux - ./tools/gitlab/build-linux
build-daily-winetest: build-daily-winetest:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment