@@ -519,11 +519,12 @@ jobs:
519519 run : |
520520 sudo apt-get update
521521 sudo apt install -y \
522- rocm-dev \
522+ cmake \
523523 hip-dev \
524524 hipblas-dev \
525- cmake \
526- ninja-build
525+ ninja-build \
526+ rocm-dev \
527+ zip
527528 # Clean apt caches to recover disk space
528529 sudo apt clean
529530 sudo rm -rf /var/lib/apt/lists/* || true
@@ -606,12 +607,29 @@ jobs:
606607 cp /opt/rocm/lib/rocblas/library/* ./build/bin/rocblas/library/ || true
607608 cp /opt/rocm/lib/hipblaslt/library/* ./build/bin/hipblaslt/library/ || true
608609
610+ - name : Fetch system info
611+ id : system-info
612+ run : |
613+ echo "CPU_ARCH=`uname -m`" >> "$GITHUB_OUTPUT"
614+ echo "OS_NAME=`lsb_release -s -i`" >> "$GITHUB_OUTPUT"
615+ echo "OS_VERSION=`lsb_release -s -r`" >> "$GITHUB_OUTPUT"
616+ echo "OS_TYPE=`uname -s`" >> "$GITHUB_OUTPUT"
617+
618+ - name : Pack artifacts
619+ id : pack_artifacts
620+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
621+ run : |
622+ cp ggml/LICENSE ./build/bin/ggml.txt
623+ cp LICENSE ./build/bin/stable-diffusion.cpp.txt
624+ zip -j sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-${{ steps.system-info.outputs.OS_TYPE }}-${{ steps.system-info.outputs.OS_NAME }}-${{ steps.system-info.outputs.OS_VERSION }}-${{ steps.system-info.outputs.CPU_ARCH }}-rocm.zip ./build/bin/*
625+
609626 - name : Upload artifacts
610627 if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
611628 uses : actions/upload-artifact@v4
612629 with :
613- name : sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-linux-rocm-x64
614- path : build/bin
630+ name : sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-${{ steps.system-info.outputs.OS_TYPE }}-${{ steps.system-info.outputs.OS_NAME }}-${{ steps.system-info.outputs.OS_VERSION }}-${{ steps.system-info.outputs.CPU_ARCH }}-rocm.zip
631+ path : |
632+ sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-${{ steps.system-info.outputs.OS_TYPE }}-${{ steps.system-info.outputs.OS_NAME }}-${{ steps.system-info.outputs.OS_VERSION }}-${{ steps.system-info.outputs.CPU_ARCH }}-rocm.zip
615633
616634 release :
617635 if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
0 commit comments