CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
104 lines
3.2 KiB
Groovy
104 lines
3.2 KiB
Groovy
pipeline {
|
|
options {
|
|
disableConcurrentBuilds()
|
|
buildDiscarder(logRotator(numToKeepStr: '30'))
|
|
skipDefaultCheckout()
|
|
}
|
|
|
|
parameters {
|
|
string(name: 'LABEL', defaultValue: params.LABEL ?: 'windows-server-2019', description: 'Node label to run on')
|
|
|
|
string(name: 'BUILD_TYPE', defaultValue: params.BUILD_TYPE ?: 'Release', description: 'Default CMake build type; one of: Release, Debug, ...')
|
|
}
|
|
|
|
agent {
|
|
node {
|
|
label params.LABEL
|
|
}
|
|
}
|
|
|
|
stages {
|
|
stage('Pull Docker Image') {
|
|
steps {
|
|
bat 'docker pull swiftlang/swift-ci:lldb-windowsservercore-1809'
|
|
}
|
|
}
|
|
|
|
stage('Checkout') {
|
|
steps {
|
|
timeout(30) {
|
|
dir('llvm-project') {
|
|
checkout scm
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
stage('Print Machine Info') {
|
|
steps {
|
|
bat '''
|
|
docker run --rm ^
|
|
swiftlang/swift-ci:lldb-windowsservercore-1809 ^
|
|
powershell -Command "cmake --version; ninja --version; python --version; swig -version"
|
|
'''
|
|
}
|
|
}
|
|
|
|
stage('Build and Test') {
|
|
steps {
|
|
timeout(240) {
|
|
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
|
writeFile file: 'build.bat', text: '''@echo off
|
|
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat" || exit /b 1
|
|
|
|
"C:\\Program Files\\Python313\\python.exe" -m pip install packaging || exit /b 1
|
|
|
|
cmake -G Ninja ^
|
|
-S llvm ^
|
|
-B ..\\llvm-build\\ ^
|
|
-DCMAKE_BUILD_TYPE=%BUILD_TYPE% ^
|
|
-DCMAKE_INSTALL_PREFIX=..\\llvm-install\\base ^
|
|
-DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake ^
|
|
-DLLVM_ENABLE_PROJECTS="clang;lld;lldb" ^
|
|
-DLLVM_ENABLE_ASSERTIONS=ON ^
|
|
-DLLVM_ENABLE_LIBEDIT=OFF ^
|
|
-DLLVM_OPTIMIZED_TABLEGEN=ON ^
|
|
-DLLVM_BUILD_TOOLS=ON ^
|
|
-DLLVM_BUILD_UTILS=ON ^
|
|
-DLLVM_ENABLE_LIBXML2=FORCE_ON ^
|
|
-DLLDB_ENABLE_SWIG=ON ^
|
|
-DLLDB_ENABLE_PYTHON=ON ^
|
|
-DLLDB_ENABLE_LUA=OFF ^
|
|
-DLLDB_ENABLE_LIBXML2=ON ^
|
|
-DLLVM_TARGETS_TO_BUILD=Native ^
|
|
-DLLVM_LIT_ARGS="-v --time-tests --xunit-xml-output=C:\\workspace\\llvm-build\\test\\results.xml" ^
|
|
-DPython3_EXECUTABLE="C:\\Program Files\\Python313\\python.exe" || exit /b 1
|
|
|
|
if not exist ..\\llvm-build\\test mkdir ..\\llvm-build\\test
|
|
|
|
ninja check-lldb -C ..\\llvm-build || exit /b 1
|
|
'''
|
|
bat '''
|
|
docker run --rm ^
|
|
-e BUILD_TYPE=%BUILD_TYPE% ^
|
|
-v "%CD%:C:\\workspace" ^
|
|
-w "C:\\workspace\\llvm-project" ^
|
|
swiftlang/swift-ci:lldb-windowsservercore-1809 ^
|
|
cmd /C C:\\workspace\\build.bat
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
always {
|
|
junit allowEmptyResults: true, testResults: 'llvm-build/test/results.xml'
|
|
}
|
|
cleanup {
|
|
deleteDir()
|
|
}
|
|
}
|
|
}
|