@@ -491,6 +491,7 @@ jobs:
491491
492492 env :
493493 ROCM_VERSION : " 7.2"
494+ UBUNTU_VERSION : " 24.04"
494495 GPU_TARGETS : " gfx1151;gfx1150;gfx1100;gfx1101;gfx1102;gfx1200;gfx1201"
495496
496497 steps :
@@ -519,11 +520,12 @@ jobs:
519520 run : |
520521 sudo apt-get update
521522 sudo apt install -y \
522- rocm-dev \
523+ cmake \
523524 hip-dev \
524525 hipblas-dev \
525- cmake \
526- ninja-build
526+ ninja-build \
527+ rocm-dev \
528+ zip
527529 # Clean apt caches to recover disk space
528530 sudo apt clean
529531 sudo rm -rf /var/lib/apt/lists/* || true
@@ -606,12 +608,29 @@ jobs:
606608 cp /opt/rocm/lib/rocblas/library/* ./build/bin/rocblas/library/ || true
607609 cp /opt/rocm/lib/hipblaslt/library/* ./build/bin/hipblaslt/library/ || true
608610
611+ - name : Fetch system info
612+ id : system-info
613+ run : |
614+ echo "CPU_ARCH=`uname -m`" >> "$GITHUB_OUTPUT"
615+ echo "OS_NAME=`lsb_release -s -i`" >> "$GITHUB_OUTPUT"
616+ echo "OS_VERSION=`lsb_release -s -r`" >> "$GITHUB_OUTPUT"
617+ echo "OS_TYPE=`uname -s`" >> "$GITHUB_OUTPUT"
618+
619+ - name : Pack artifacts
620+ id : pack_artifacts
621+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
622+ run : |
623+ cp ggml/LICENSE ./build/bin/ggml.txt
624+ cp LICENSE ./build/bin/stable-diffusion.cpp.txt
625+ zip -j sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-${{ steps.system-info.outputs.OS_TYPE }}-${{ steps.system-info.outputs.OS_NAME }}-${{ env.UBUNTU_VERSION }}-${{ steps.system-info.outputs.CPU_ARCH }}-rocm.zip ./build/bin/*
626+
609627 - name : Upload artifacts
610628 if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
611629 uses : actions/upload-artifact@v4
612630 with :
613- name : sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-linux-rocm-x64
614- path : build/bin
631+ name : sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-${{ steps.system-info.outputs.OS_TYPE }}-${{ steps.system-info.outputs.OS_NAME }}-${{ env.UBUNTU_VERSION }}-${{ steps.system-info.outputs.CPU_ARCH }}-rocm.zip
632+ path : |
633+ sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-${{ steps.system-info.outputs.OS_TYPE }}-${{ steps.system-info.outputs.OS_NAME }}-${{ env.UBUNTU_VERSION }}-${{ steps.system-info.outputs.CPU_ARCH }}-rocm.zip
615634
616635 release :
617636 if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
0 commit comments