From d37568443493b540204bc93008d7820b1eefb74a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=BA=E6=97=BA=E7=A2=8E=E5=86=B0=E5=86=B0?= <38837039+Cyberhan123@users.noreply.github.com> Date: Sat, 9 Dec 2023 15:22:37 +0800 Subject: [PATCH] fix ROCm can't find pack artifacts (#156) * fix ROCm can't find pack artifacts * Update build.yml --------- Co-authored-by: Alex --- .github/workflows/build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 19dab1e..db0831f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -255,7 +255,17 @@ jobs: id: pack_artifacts if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} run: | - 7z a rwkv-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-${{ matrix.build }}-x64.zip .\build\bin\Release\rwkv.dll + $filePath = ".\build\bin\Release\rwkv.dll" + if (Test-Path $filePath) { + echo "Exists at path $filePath" + } elseif (Test-Path ".\build\bin\rwkv.dll") { + $filePath = ".\build\bin\rwkv.dll" + echo "Exists at path $filePath" + } else { + ls .\build\bin + throw "Can't find rwkv.dll" + } + 7z a rwkv-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-${{ matrix.build }}-x64.zip $filePath - name: Upload artifacts if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}