Skip to content

Commit

Permalink
fix ROCm can't find pack artifacts (#156)
Browse files Browse the repository at this point in the history
* fix ROCm can't find pack artifacts

* Update build.yml

---------

Co-authored-by: Alex <saharNooby@users.noreply.github.com>
  • Loading branch information
Cyberhan123 and saharNooby committed Dec 9, 2023
1 parent d2075c7 commit d375684
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Expand Up @@ -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' }}
Expand Down

0 comments on commit d375684

Please sign in to comment.