@@ -23,13 +23,22 @@ jobs:
2323 git diff --exit-code -I "^# RUN" origin/sycl-rel-6_3:sycl/test/abi/sycl_symbols_linux.dump sycl/test/abi/sycl_symbols_linux-sycl-rel-6_3.dump
2424 git diff --exit-code -I "^# RUN" origin/sycl-rel-6_3:sycl/test/abi/sycl_symbols_windows.dump sycl/test/abi/sycl_symbols_windows-sycl-rel-6_3.dump
2525
26+ get_date :
27+ runs-on : ubuntu-latest
28+ outputs :
29+ date : ${{ steps.get_date.outputs.date }}
30+ steps :
31+ - id : get_date
32+ run : echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
33+
2634 ubuntu2204_build :
35+ needs : get_date
2736 if : github.repository == 'intel/llvm'
2837 uses : ./.github/workflows/sycl-linux-build.yml
2938 secrets : inherit
3039 with :
3140 build_cache_root : " /__w/"
32- build_configure_extra_args : ' --hip --cuda'
41+ build_configure_extra_args : ' --hip --cuda -DSYCL_BUILD_INFO="Nightly ${{ needs.get_date.outputs.date }}" '
3342 build_image : ghcr.io/intel/llvm/ubuntu2204_build:latest
3443
3544 retention-days : 90
@@ -189,6 +198,7 @@ jobs:
189198 toolchain_decompress_command : ${{ needs.ubuntu2404_oneapi_build.outputs.toolchain_decompress_command }}
190199
191200 build-win :
201+ needs : get_date
192202 uses : ./.github/workflows/sycl-windows-build.yml
193203 if : github.repository == 'intel/llvm'
194204 with :
@@ -197,7 +207,7 @@ jobs:
197207 # functionality, make sure Linux/Windows names follow the same pattern.
198208 toolchain_artifact_filename : sycl_windows.tar.gz
199209 # Disable the spirv-dis requirement as to not require SPIR-V Tools.
200- build_configure_extra_args : -DLLVM_SPIRV_ENABLE_LIBSPIRV_DIS=off
210+ build_configure_extra_args : -DLLVM_SPIRV_ENABLE_LIBSPIRV_DIS=off -DSYCL_BUILD_INFO="Nightly ${{ needs.get_date.outputs.date }}"
201211 build_target : all
202212
203213 e2e-win :
@@ -215,7 +225,7 @@ jobs:
215225 target_devices : level_zero:gpu
216226
217227 - name : Intel L0 Arc GPU
218- runner : ' ["Windows", arc"]'
228+ runner : ' ["Windows", " arc"]'
219229 target_devices : level_zero:gpu
220230
221231 - name : Intel L0 Battlemage GPU
@@ -358,7 +368,7 @@ jobs:
358368 nightly_build_upload :
359369 name : Nightly Build Upload
360370 if : ${{ github.ref_name == 'sycl' }}
361- needs : [ubuntu2204_build, build-win]
371+ needs : [get_date, ubuntu2204_build, build-win]
362372 runs-on : ubuntu-latest
363373 permissions :
364374 contents : write
@@ -378,10 +388,10 @@ jobs:
378388 id : tag
379389 run : |
380390 if [ "${{ github.event_name == 'schedule' }}" == "true" ]; then
381- echo "TAG=$( date +'%Y-%m-%d') " >> "$GITHUB_OUTPUT"
391+ echo "TAG=${{ needs.get_date.outputs. date }} " >> "$GITHUB_OUTPUT"
382392 else
383393 # TODO: Use date of the commit?
384- echo "TAG=$( date +'%Y-%m-%d') -${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
394+ echo "TAG=${{ needs.get_date.outputs. date }} -${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
385395 fi
386396 - name : Upload binaries
387397 uses : softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
0 commit comments