2023-08-31 13:55:46 -07:00
|
|
|
.build-linux:
|
2023-07-05 05:43:25 -07:00
|
|
|
stage: build
|
|
|
|
rules:
|
|
|
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
|
|
|
image: $CI_REGISTRY/wine/vkd3d:debian-bookworm
|
|
|
|
interruptible: true
|
|
|
|
needs:
|
|
|
|
- job: build-image
|
|
|
|
optional: true
|
|
|
|
dependencies: []
|
|
|
|
script:
|
|
|
|
- git config --global --add safe.directory $CI_PROJECT_DIR
|
|
|
|
- git clean -fdx
|
|
|
|
- git reset --hard
|
|
|
|
- rm -fr .git/rebase-merge
|
|
|
|
- mkdir artifacts
|
|
|
|
- cat /proc/cpuinfo > artifacts/cpuinfo.txt
|
|
|
|
- cat /proc/meminfo > artifacts/meminfo.txt
|
|
|
|
- vulkaninfo > artifacts/vulkaninfo.txt
|
|
|
|
- git rebase $CI_MERGE_REQUEST_DIFF_BASE_SHA --exec ./gitlab/build-linux
|
2023-11-06 05:58:24 -08:00
|
|
|
- if [ -f build_failed ] ; then exit 1 ; fi
|
|
|
|
- if [ -f tests_failed ] ; then exit 2 ; fi
|
2023-07-05 05:43:25 -07:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- artifacts
|
|
|
|
|
2023-08-31 13:37:53 -07:00
|
|
|
build-radv-64:
|
2023-08-31 13:55:46 -07:00
|
|
|
extends: .build-linux
|
2023-08-29 13:59:50 -07:00
|
|
|
tags:
|
|
|
|
- amd-gpu
|
|
|
|
variables:
|
|
|
|
VK_LOADER_DRIVERS_SELECT: 'radeon_*'
|
2023-08-29 12:20:35 -07:00
|
|
|
VKD3D_SHADER_CONFIG: 'force_validation'
|
2023-08-29 13:59:50 -07:00
|
|
|
|
2023-08-31 13:37:53 -07:00
|
|
|
build-llvmpipe-64:
|
2023-08-31 13:55:46 -07:00
|
|
|
extends: .build-linux
|
2023-11-06 05:58:24 -08:00
|
|
|
allow_failure:
|
|
|
|
exit_codes:
|
|
|
|
- 2
|
2023-08-29 13:59:50 -07:00
|
|
|
variables:
|
|
|
|
VK_LOADER_DRIVERS_SELECT: 'lvp_*'
|
2023-08-29 12:20:35 -07:00
|
|
|
VKD3D_SHADER_CONFIG: 'force_validation'
|
2023-08-31 13:37:53 -07:00
|
|
|
|
|
|
|
build-radv-32:
|
2023-08-31 13:55:46 -07:00
|
|
|
extends: .build-linux
|
2023-08-31 13:37:53 -07:00
|
|
|
tags:
|
|
|
|
- amd-gpu
|
|
|
|
variables:
|
|
|
|
VK_LOADER_DRIVERS_SELECT: 'radeon_*'
|
2023-09-25 06:45:36 -07:00
|
|
|
CC: 'i686-linux-gnu-gcc'
|
2023-08-29 12:20:35 -07:00
|
|
|
VKD3D_SHADER_CONFIG: 'force_validation'
|
2023-08-31 13:37:53 -07:00
|
|
|
|
|
|
|
build-llvmpipe-32:
|
2023-08-31 13:55:46 -07:00
|
|
|
extends: .build-linux
|
2023-11-06 05:58:24 -08:00
|
|
|
allow_failure:
|
|
|
|
exit_codes:
|
|
|
|
- 2
|
2023-08-31 13:37:53 -07:00
|
|
|
variables:
|
|
|
|
VK_LOADER_DRIVERS_SELECT: 'lvp_*'
|
2023-09-25 06:45:36 -07:00
|
|
|
CC: 'i686-linux-gnu-gcc'
|
2023-08-29 12:20:35 -07:00
|
|
|
VKD3D_SHADER_CONFIG: 'force_validation'
|
2023-08-31 13:55:46 -07:00
|
|
|
|
2023-09-21 06:35:11 -07:00
|
|
|
build-crosstest:
|
|
|
|
stage: build
|
|
|
|
rules:
|
|
|
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
|
|
|
image: $CI_REGISTRY/wine/vkd3d:debian-bookworm
|
|
|
|
interruptible: true
|
|
|
|
needs:
|
|
|
|
- job: build-image
|
|
|
|
optional: true
|
|
|
|
dependencies: []
|
|
|
|
script:
|
|
|
|
- git config --global --add safe.directory $CI_PROJECT_DIR
|
|
|
|
- git clean -fdx
|
|
|
|
- git reset --hard
|
|
|
|
- rm -fr .git/rebase-merge
|
|
|
|
- mkdir artifacts
|
|
|
|
- cat /proc/cpuinfo > artifacts/cpuinfo.txt
|
|
|
|
- cat /proc/meminfo > artifacts/meminfo.txt
|
|
|
|
- vulkaninfo > artifacts/vulkaninfo.txt
|
|
|
|
- git rebase $CI_MERGE_REQUEST_DIFF_BASE_SHA --exec ./gitlab/build-crosstest
|
|
|
|
- if [ -f pipeline_failed ] ; then exit 1 ; fi
|
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- artifacts
|
|
|
|
|
2023-09-22 14:13:25 -07:00
|
|
|
.build-mingw:
|
|
|
|
stage: build
|
|
|
|
rules:
|
|
|
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
|
|
|
image: $CI_REGISTRY/wine/vkd3d:debian-bookworm
|
|
|
|
interruptible: true
|
|
|
|
needs:
|
|
|
|
- job: build-image
|
|
|
|
optional: true
|
|
|
|
dependencies: []
|
|
|
|
script:
|
|
|
|
- git config --global --add safe.directory $CI_PROJECT_DIR
|
|
|
|
- git clean -fdx
|
|
|
|
- git reset --hard
|
|
|
|
- rm -fr .git/rebase-merge
|
|
|
|
- mkdir artifacts
|
|
|
|
- cat /proc/cpuinfo > artifacts/cpuinfo.txt
|
|
|
|
- cat /proc/meminfo > artifacts/meminfo.txt
|
|
|
|
- git rebase $CI_MERGE_REQUEST_DIFF_BASE_SHA --exec ./gitlab/build-mingw
|
|
|
|
- if [ -f pipeline_failed ] ; then exit 1 ; fi
|
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- artifacts
|
|
|
|
|
|
|
|
build-mingw-64:
|
|
|
|
extends: .build-mingw
|
|
|
|
variables:
|
|
|
|
HOST: "x86_64-w64-mingw32"
|
|
|
|
|
|
|
|
build-mingw-32:
|
|
|
|
extends: .build-mingw
|
|
|
|
variables:
|
|
|
|
HOST: "i686-w64-mingw32"
|
|
|
|
|
2023-08-31 13:55:46 -07:00
|
|
|
build-mac:
|
|
|
|
stage: build
|
|
|
|
rules:
|
|
|
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
2023-11-06 05:58:24 -08:00
|
|
|
allow_failure:
|
|
|
|
exit_codes:
|
|
|
|
- 2
|
2023-08-31 13:55:46 -07:00
|
|
|
interruptible: true
|
|
|
|
needs: []
|
|
|
|
dependencies: []
|
|
|
|
tags:
|
|
|
|
- mac
|
|
|
|
script:
|
|
|
|
- git config --global --add safe.directory $CI_PROJECT_DIR
|
|
|
|
- git clean -fdx
|
|
|
|
- git reset --hard
|
|
|
|
- rm -fr .git/rebase-merge
|
|
|
|
# We use a custom ICD which is not marked as a portability driver,
|
|
|
|
# so that test programs are not confused.
|
|
|
|
- ./gitlab/patch_moltenvk_icd.sh
|
|
|
|
- export VK_DRIVER_FILES="$PWD/gitlab/MoltenVK_icd.json"
|
|
|
|
- mkdir artifacts
|
|
|
|
- system_profiler SPSoftwareDataType SPHardwareDataType > artifacts/systeminfo.txt
|
|
|
|
- vulkaninfo > artifacts/vulkaninfo.txt
|
|
|
|
- export PATH="/usr/local/opt/bison/bin:/usr/local/opt/flex/bin:$PATH"
|
|
|
|
- git clone --depth 1 --branch wine-3.21 https://gitlab.winehq.org/wine/wine.git
|
|
|
|
- cd wine
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- ../configure --enable-win64 --without-x --without-freetype
|
|
|
|
- make tools/widl/widl
|
|
|
|
- cd ../..
|
|
|
|
- export PATH="$PWD/wine/build/tools/widl:$PATH"
|
|
|
|
- git rebase $CI_MERGE_REQUEST_DIFF_BASE_SHA --exec ./gitlab/build-mac
|
2023-11-06 05:58:24 -08:00
|
|
|
- if [ -f build_failed ] ; then exit 1 ; fi
|
|
|
|
- if [ -f tests_failed ] ; then exit 2 ; fi
|
2023-08-31 13:55:46 -07:00
|
|
|
variables:
|
|
|
|
VKD3D_DISABLE_EXTENSIONS: "VK_EXT_descriptor_indexing"
|
2023-08-29 12:20:35 -07:00
|
|
|
VKD3D_SHADER_CONFIG: 'force_validation'
|
2023-10-23 10:54:24 -07:00
|
|
|
MVK_CONFIG_LOG_LEVEL: 1
|
2023-08-31 13:55:46 -07:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- artifacts
|