File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -800,6 +800,7 @@ jobs:
800800
801801 windows-latest-cmake-sycl :
802802 runs-on : windows-latest
803+
803804 defaults :
804805 run :
805806 shell : bash
@@ -808,7 +809,6 @@ jobs:
808809 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
809810 WINDOWS_DPCPP_MKL : intel.oneapi.win.cpp-dpcpp-common:intel.oneapi.win.mkl.devel
810811
811-
812812 steps :
813813 - name : Clone
814814 id : checkout
@@ -823,6 +823,32 @@ jobs:
823823 id : cmake_build
824824 run : examples/sycl/win-build-sycl.bat
825825
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+
826852 ios-xcode-build :
827853 runs-on : macos-latest
828854
You can’t perform that action at this time.
0 commit comments