@@ -962,7 +962,8 @@ jobs:
962962 fetch-depth : 0
963963
964964 - name : Install
965- run : scripts/install-oneapi.bat $WINDOWS_BASEKIT_URL $WINDOWS_DPCPP_MKL
965+ run : |
966+ scripts/install-oneapi.bat $WINDOWS_BASEKIT_URL $WINDOWS_DPCPP_MKL
966967
967968 - name : Build
968969 id : cmake_build
@@ -981,27 +982,33 @@ jobs:
981982 echo "name=${SAFE_NAME}-b${BUILD_NUMBER}-${SHORT_HASH}" >> $GITHUB_OUTPUT
982983 fi
983984
984- - name : Pack artifacts
985+ - name : Build the release package
985986 id : pack_artifacts
986- if : ${{ ( github.event_name == 'push ' && github.ref == 'refs/heads/ master' ) || github.event.inputs.create_release == 'true' }}
987+ if : ${{ ( github.event_name == 'pull_request ' && github.base_ref == 'master' ) }}
987988 run : |
988989 echo "cp oneAPI running time dll files in ${{ env.ONEAPI_ROOT }} to ./build/bin"
989990 cp "${{ env.ONEAPI_ROOT }}/mkl/latest/bin/mkl_sycl_blas.5.dll" ./build/bin
990991 cp "${{ env.ONEAPI_ROOT }}/mkl/latest/bin/mkl_core.2.dll" ./build/bin
991992 cp "${{ env.ONEAPI_ROOT }}/mkl/latest/bin/mkl_tbb_thread.2.dll" ./build/bin
992993
994+ cp "${{ env.ONEAPI_ROOT }}/compiler/latest/bin/ur_adapter_level_zero.dll" ./build/bin
995+ cp "${{ env.ONEAPI_ROOT }}/compiler/latest/bin/ur_adapter_opencl.dll" ./build/bin
993996 cp "${{ env.ONEAPI_ROOT }}/compiler/latest/bin/ur_loader.dll" ./build/bin
994997 cp "${{ env.ONEAPI_ROOT }}/compiler/latest/bin/ur_win_proxy_loader.dll" ./build/bin
995- cp "${{ env.ONEAPI_ROOT }}/compiler/latest/bin/ur_adapter_level_zero.dll" ./build/bin
998+
996999 cp "${{ env.ONEAPI_ROOT }}/compiler/latest/bin/sycl8.dll" ./build/bin
9971000 cp "${{ env.ONEAPI_ROOT }}/compiler/latest/bin/svml_dispmd.dll" ./build/bin
9981001 cp "${{ env.ONEAPI_ROOT }}/compiler/latest/bin/libmmd.dll" ./build/bin
9991002 cp "${{ env.ONEAPI_ROOT }}/compiler/latest/bin/libiomp5md.dll" ./build/bin
1003+
1004+ cp "${{ env.ONEAPI_ROOT }}/dnnl/latest/bin/dnnl.dll" ./build/bin
1005+ cp "${{ env.ONEAPI_ROOT }}/tbb/latest/bin/tbb12.dll" ./build/bin
1006+
10001007 echo "cp oneAPI running time dll files to ./build/bin done"
10011008 7z a llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip ./build/bin/*
10021009
1003- - name : Upload artifacts
1004- if : ${{ ( github.event_name == 'push ' && github.ref == 'refs/heads/ master' ) || github.event.inputs.create_release == 'true' }}
1010+ - name : Upload the release package
1011+ if : ${{ ( github.event_name == 'pull_request ' && github.base_ref == 'master' ) }}
10051012 uses : actions/upload-artifact@v4
10061013 with :
10071014 path : llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip
0 commit comments