Skip to content

Commit cf2aa83

Browse files
committed
[CI][sycl-rel-6_3] Update clang version output
For more details see: #20520 This PR adds branch:hash to nightly builds on release branches. It also allows to specify a custom version manually in case of official release builds, e.g. "6.3.0 release build".
1 parent 4a905ca commit cf2aa83

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

.github/workflows/sycl-linux-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,18 @@ jobs:
173173
cd $GITHUB_WORKSPACE/build
174174
python3 $GITHUB_WORKSPACE/src/buildbot/configure.py -w $GITHUB_WORKSPACE \
175175
-s $GITHUB_WORKSPACE/src -o $GITHUB_WORKSPACE/build -t Release \
176-
--ci-defaults --use-zstd ${{ inputs.build_configure_extra_args }} \
176+
--ci-defaults --use-zstd \
177177
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
178178
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
179179
-DLLVM_INSTALL_UTILS=ON \
180180
-DNATIVECPU_USE_OCK=Off \
181-
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=SPIRV
181+
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=SPIRV \
182+
${{ inputs.build_configure_extra_args }}
182183
- name: Compile
183184
id: build
184185
# Emulate default value for manual dispatch as we've run out of available arguments.
185186
run: cmake --build $GITHUB_WORKSPACE/build --target ${{ inputs.build_target || 'sycl-toolchain' }}
187+
- run: $GITHUB_WORKSPACE/build/bin/clang++ --version
186188
- name: check-llvm
187189
if: always() && !cancelled() && contains(inputs.changes, 'llvm')
188190
run: |

.github/workflows/sycl-rel-nightly.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: SYCL Release Branch Nightly
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
release_version:
7+
type: string
58

69
permissions: read-all
710

@@ -12,7 +15,13 @@ jobs:
1215
with:
1316
build_cache_root: "/__w/"
1417
build_artifact_suffix: default
15-
build_configure_extra_args: '-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_LIBDIR=lib --disable-jit --no-assertions --add_security_flags=sanitize --hip --cuda'
18+
build_configure_extra_args: |
19+
-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_LIBDIR=lib \
20+
--disable-jit --no-assertions --add_security_flags=sanitize --hip --cuda \
21+
-DLLVM_VC_REPOSITORY="${{ github.repositoryUrl }}" \
22+
-DCLANG_VC_REPOSITORY="${{ github.repositoryUrl }}" \
23+
-DLLVM_VC_REVISION="${{ inputs.release_version || format('{0}:{1} Nightly build', github.ref_name, github.sha) }}" \
24+
-DCLANG_VC_REVISION="${{ inputs.release_version || format('{0}:{1} Nightly build', github.ref_name, github.sha) }}"
1625
build_image: ghcr.io/intel/llvm/release_build:latest
1726
pack_release: 'true'
1827

@@ -80,7 +89,13 @@ jobs:
8089
build-win:
8190
uses: ./.github/workflows/sycl-windows-build.yml
8291
with:
83-
build_configure_extra_args: '-DLLVM_SPIRV_ENABLE_LIBSPIRV_DIS=off -DCMAKE_POSITION_INDEPENDENT_CODE=ON --disable-jit --no-assertions --add_security_flags=sanitize'
92+
build_configure_extra_args: |
93+
-DLLVM_SPIRV_ENABLE_LIBSPIRV_DIS=off -DCMAKE_POSITION_INDEPENDENT_CODE=ON ^
94+
--disable-jit --no-assertions --add_security_flags=sanitize ^
95+
-DLLVM_VC_REPOSITORY="${{ github.repositoryUrl }}" ^
96+
-DCLANG_VC_REPOSITORY="${{ github.repositoryUrl }}" ^
97+
-DLLVM_VC_REVISION="${{ inputs.release_version || format('{0}:{1} Nightly build', github.ref_name, github.sha) }}" ^
98+
-DCLANG_VC_REVISION="${{ inputs.release_version || format('{0}:{1} Nightly build', github.ref_name, github.sha) }}"
8499
pack_release: 'true'
85100

86101
# We upload both Linux/Windows build via Github's "Releases"

.github/workflows/sycl-windows-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,21 @@ jobs:
140140
IF NOT EXIST D:\github\_work\cache MKDIR D:\github\_work\cache
141141
IF NOT EXIST D:\github\_work\cache\${{inputs.build_cache_suffix}} MKDIR D:\github\_work\cache\${{inputs.build_cache_suffix}}
142142
python.exe src/buildbot/configure.py -o build ^
143-
--ci-defaults --use-zstd %ARGS% ^
143+
--ci-defaults --use-zstd ^
144144
"-DCMAKE_C_COMPILER=${{inputs.cxx}}" ^
145145
"-DCMAKE_CXX_COMPILER=${{inputs.cxx}}" ^
146146
"-DCMAKE_INSTALL_PREFIX=%GITHUB_WORKSPACE%\install" ^
147147
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache ^
148148
-DCMAKE_C_COMPILER_LAUNCHER=ccache ^
149149
-DLLVM_INSTALL_UTILS=ON ^
150-
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=SPIRV
150+
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=SPIRV ^
151+
%ARGS%
151152
- name: Build
152153
id: build
153154
shell: bash
154155
run: |
155156
cmake --build build --target ${{ inputs.build_target }}
157+
- run: build/bin/clang++ --version
156158
- name: check-llvm
157159
if: always() && !cancelled() && contains(inputs.changes, 'llvm')
158160
shell: bash

0 commit comments

Comments
 (0)