1 # CI script for building Wine
5 image: $CI_REGISTRY/wine/wine:debian-bookworm
16 - build32/config.cache
17 - build64/config.cache
19 - export BASEDIR="$PWD"
20 - export CCACHE_BASEDIR="$BASEDIR"
21 - export CCACHE_DIR="$BASEDIR/ccache"
22 - export CCACHE_COMPILERCHECK=content
23 - export PATH="/usr/lib/ccache:$PATH"
24 - git config --global --add safe.directory $CI_PROJECT_DIR
26 - mkdir -p build32 build64
27 - rm -fr .git/rebase-merge # in case a previous CI run failed in git rebase
32 - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
38 - git rebase $CI_MERGE_REQUEST_DIFF_BASE_SHA --exec ./tools/gitlab/build-linux
43 - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
52 - export PATH="/usr/local/opt/ccache/libexec:$PATH"
53 - git rebase $CI_MERGE_REQUEST_DIFF_BASE_SHA --exec ./tools/gitlab/build-mac
58 - if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
64 - ./tools/gitlab/build-linux
68 image: $CI_REGISTRY/wine/wine:debian-bookworm
70 - if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
72 - job: build-daily-linux
81 - mv usr/local/lib/wine/i386-windows/winetest.exe winetest.exe
82 - mv usr/local/lib/wine/x86_64-windows/winetest.exe winetest64.exe