@@ -16,11 +16,6 @@ concurrency:
1616 group : ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
1717 cancel-in-progress : true
1818
19- # Fine-grant permission
20- # https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
21- permissions :
22- contents : write # for creating release
23-
2419env :
2520 BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
2621 CMAKE_ARGS : " -DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_TOOLS=ON -DLLAMA_BUILD_SERVER=ON -DGGML_RPC=ON"
@@ -416,28 +411,27 @@ jobs:
416411 CURL_PATH : ${{ steps.get_libcurl.outputs.curl_path }}
417412 run : |
418413 cp $env:CURL_PATH\bin\libcurl-x64.dll .\build\bin\Release\libcurl-x64.dll
419- 7z a llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-cu ${{ matrix.cuda }}-x64.zip .\build\bin\Release\*
414+ 7z a llama-${{ steps.tag.outputs.name }}-bin-win-cuda ${{ matrix.cuda }}-x64.zip .\build\bin\Release\*
420415
421416 - name : Upload artifacts
422417 uses : actions/upload-artifact@v4
423418 with :
424- path : llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-cu ${{ matrix.cuda }}-x64.zip
425- name : llama-bin-win-cu ${{ matrix.cuda }}-x64.zip
419+ path : llama-${{ steps.tag.outputs.name }}-bin-win-cuda ${{ matrix.cuda }}-x64.zip
420+ name : llama-bin-win-cuda ${{ matrix.cuda }}-x64.zip
426421
427422 - name : Copy and pack Cuda runtime
428- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
429423 run : |
430424 echo "Cuda install location: ${{ env.CUDA_PATH }}"
431425 $dst='.\build\bin\cudart\'
432426 robocopy "${{env.CUDA_PATH}}\bin" $dst cudart64_*.dll cublas64_*.dll cublasLt64_*.dll
433427 robocopy "${{env.CUDA_PATH}}\lib" $dst cudart64_*.dll cublas64_*.dll cublasLt64_*.dll
434- 7z a cudart-llama-bin-win-cu ${{ matrix.cuda }}-x64.zip $dst\*
428+ 7z a cudart-llama-bin-win-cuda ${{ matrix.cuda }}-x64.zip $dst\*
435429
436430 - name : Upload Cuda runtime
437431 uses : actions/upload-artifact@v4
438432 with :
439- path : cudart-llama-bin-win-cu ${{ matrix.cuda }}-x64.zip
440- name : cudart-llama-bin-win-cu ${{ matrix.cuda }}-x64.zip
433+ path : cudart-llama-bin-win-cuda ${{ matrix.cuda }}-x64.zip
434+ name : cudart-llama-bin-win-cuda ${{ matrix.cuda }}-x64.zip
441435
442436 windows-sycl :
443437 runs-on : windows-latest
@@ -646,6 +640,11 @@ jobs:
646640 release :
647641 if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
648642
643+ # Fine-grant permission
644+ # https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
645+ permissions :
646+ contents : write # for creating release
647+
649648 runs-on : ubuntu-latest
650649
651650 needs :
0 commit comments