File tree 1 file changed +27
-1
lines changed
1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -800,6 +800,7 @@ jobs:
800
800
801
801
windows-latest-cmake-sycl :
802
802
runs-on : windows-latest
803
+
803
804
defaults :
804
805
run :
805
806
shell : bash
@@ -808,7 +809,6 @@ jobs:
808
809
WINDOWS_BASEKIT_URL : https://registrationcenter-download.intel.com/akdlm/IRC_NAS/62641e01-1e8d-4ace-91d6-ae03f7f8a71f/w_BaseKit_p_2024.0.0.49563_offline.exe
809
810
WINDOWS_DPCPP_MKL : intel.oneapi.win.cpp-dpcpp-common:intel.oneapi.win.mkl.devel
810
811
811
-
812
812
steps :
813
813
- name : Clone
814
814
id : checkout
@@ -823,6 +823,32 @@ jobs:
823
823
id : cmake_build
824
824
run : examples/sycl/win-build-sycl.bat
825
825
826
+ - name : Determine tag name
827
+ id : tag
828
+ shell : bash
829
+ run : |
830
+ BUILD_NUMBER="$(git rev-list --count HEAD)"
831
+ SHORT_HASH="$(git rev-parse --short=7 HEAD)"
832
+ if [[ "${{ env.BRANCH_NAME }}" == "master" ]]; then
833
+ echo "name=b${BUILD_NUMBER}" >> $GITHUB_OUTPUT
834
+ else
835
+ SAFE_NAME=$(echo "${{ env.BRANCH_NAME }}" | tr '/' '-')
836
+ echo "name=${SAFE_NAME}-b${BUILD_NUMBER}-${SHORT_HASH}" >> $GITHUB_OUTPUT
837
+ fi
838
+
839
+ - name : Pack artifacts
840
+ id : pack_artifacts
841
+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
842
+ run : |
843
+ 7z a llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip .\build\bin\*
844
+
845
+ - name : Upload artifacts
846
+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
847
+ uses : actions/upload-artifact@v3
848
+ with :
849
+ path : |
850
+ llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip
851
+
826
852
ios-xcode-build :
827
853
runs-on : macos-latest
828
854
You can’t perform that action at this time.
0 commit comments