Skip to content

Commit 3cbdbe8

Browse files
committed
upload vulkan x86 builds
1 parent 9feb8e3 commit 3cbdbe8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,34 @@ jobs:
403403
# This is using llvmpipe and runs slower than other backends
404404
ctest -L main --verbose --timeout 1800
405405
406+
- name: Determine tag name
407+
id: tag
408+
shell: bash
409+
run: |
410+
BUILD_NUMBER="$(git rev-list --count HEAD)"
411+
SHORT_HASH="$(git rev-parse --short=7 HEAD)"
412+
if [[ "${{ env.BRANCH_NAME }}" == "master" ]]; then
413+
echo "name=b${BUILD_NUMBER}" >> $GITHUB_OUTPUT
414+
else
415+
SAFE_NAME=$(echo "${{ env.BRANCH_NAME }}" | tr '/' '-')
416+
echo "name=${SAFE_NAME}-b${BUILD_NUMBER}-${SHORT_HASH}" >> $GITHUB_OUTPUT
417+
fi
418+
419+
- name: Pack artifacts
420+
id: pack_artifacts
421+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
422+
run: |
423+
cp LICENSE ./build/bin/
424+
cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
425+
zip -r llama-${{ steps.tag.outputs.name }}-bin-ubuntu-vulkan-x64.zip ./build/bin/*
426+
427+
- name: Upload artifacts
428+
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
429+
uses: actions/upload-artifact@v4
430+
with:
431+
path: llama-${{ steps.tag.outputs.name }}-bin-ubuntu-vulkan-x64.zip
432+
name: llama-bin-ubuntu-vulkan-x64.zip
433+
406434
ubuntu-22-cmake-hip:
407435
runs-on: ubuntu-22.04
408436
container: rocm/dev-ubuntu-22.04:6.0.2

0 commit comments

Comments
 (0)