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:
|
2024-01-04 02:31:47 -08:00
|
|
|
- job: image-linux
|
2023-07-05 05:43:25 -07:00
|
|
|
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
|
|
|
|
2024-03-28 06:19:18 -07:00
|
|
|
build-llvmpipe-64-mesa24:
|
|
|
|
extends: .build-linux
|
|
|
|
allow_failure:
|
|
|
|
exit_codes:
|
|
|
|
- 2
|
|
|
|
variables:
|
|
|
|
VK_DRIVER_FILES: '/opt/mesa24/share/vulkan/icd.d/lvp_icd.x86_64.json'
|
|
|
|
LD_LIBRARY_PATH: '/opt/mesa24/lib/x86_64-linux-gnu'
|
|
|
|
__EGL_VENDOR_LIBRARY_FILENAMES: '/opt/mesa24/share/glvnd/egl_vendor.d/50_mesa.json'
|
|
|
|
VKD3D_SHADER_CONFIG: 'force_validation'
|
|
|
|
|
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:
|
2024-01-04 02:31:47 -08:00
|
|
|
- job: image-linux
|
2023-09-21 06:35:11 -07:00
|
|
|
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:
|
2024-01-04 02:31:47 -08:00
|
|
|
- job: image-linux
|
2023-09-22 14:13:25 -07:00
|
|
|
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'
|
2024-06-12 06:51:22 -07:00
|
|
|
image: winehq-sonoma-pristine
|
|
|
|
allow_failure: true
|
2023-08-31 13:55:46 -07:00
|
|
|
interruptible: true
|
2024-01-04 05:04:36 -08:00
|
|
|
needs:
|
|
|
|
- job: image-mac
|
|
|
|
optional: true
|
2023-08-31 13:55:46 -07:00
|
|
|
dependencies: []
|
|
|
|
tags:
|
|
|
|
- mac
|
|
|
|
script:
|
2024-10-17 07:35:44 -07:00
|
|
|
- brew install vulkan-tools libtool spirv-headers vulkan-loader mingw-w64
|
2023-08-31 13:55:46 -07:00
|
|
|
- git config --global --add safe.directory $CI_PROJECT_DIR
|
|
|
|
- git clean -fdx
|
|
|
|
- git reset --hard
|
|
|
|
- rm -fr .git/rebase-merge
|
2024-10-16 03:01:51 -07:00
|
|
|
- curl -o image.zip https://gitlab.winehq.org/api/v4/projects/wine%2Fvkd3d/jobs/artifacts/master/download?job=image-mac
|
2024-06-12 06:51:22 -07:00
|
|
|
- unzip image.zip
|
2023-08-31 13:55:46 -07:00
|
|
|
- mkdir artifacts
|
2024-10-17 07:35:44 -07:00
|
|
|
- export PATH="/opt/homebrew/opt/bison/bin:/opt/homebrew/opt/flex/bin:$PATH"
|
2024-06-12 06:51:22 -07:00
|
|
|
- export VK_DRIVER_FILES="$PWD/image/moltenvk/MoltenVK_icd.json"
|
2024-10-16 03:06:19 -07:00
|
|
|
- export SONAME_LIBDXCOMPILER="$PWD/image/dxc/libdxcompiler.dylib"
|
2023-08-31 13:55:46 -07:00
|
|
|
- system_profiler SPSoftwareDataType SPHardwareDataType > artifacts/systeminfo.txt
|
|
|
|
- vulkaninfo > artifacts/vulkaninfo.txt
|
|
|
|
- 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'
|
2024-06-12 06:51:22 -07:00
|
|
|
MVK_CONFIG_LOG_LEVEL: 2
|
|
|
|
SONAME_LIBVULKAN: "/opt/homebrew/opt/vulkan-loader/lib/libvulkan.1.dylib"
|
2024-10-17 07:35:44 -07:00
|
|
|
WIDL: "x86_64-w64-mingw32-widl"
|
2023-08-31 13:55:46 -07:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- artifacts
|