-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
45 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
ref: master | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.20.5" | ||
go-version: "1.20.14" | ||
- uses: actions/setup-python@v5 | ||
id: cp310 | ||
with: | ||
|
@@ -31,6 +31,7 @@ jobs: | |
Start-BitsTransfer https://github.com/josStorer/web-rwkv-converter/releases/latest/download/web-rwkv-converter_windows_x86_64.exe ./backend-rust/web-rwkv-converter.exe | ||
Start-BitsTransfer https://github.com/josStorer/LibreHardwareMonitor.Console/releases/latest/download/LibreHardwareMonitor.Console.zip ./LibreHardwareMonitor.Console.zip | ||
Expand-Archive ./LibreHardwareMonitor.Console.zip -DestinationPath ./components/LibreHardwareMonitor.Console | ||
del ./py310 -Recurse -Force | ||
Start-BitsTransfer https://www.python.org/ftp/python/3.10.11/python-3.10.11-embed-amd64.zip ./python-3.10.11-embed-amd64.zip | ||
Expand-Archive ./python-3.10.11-embed-amd64.zip -DestinationPath ./py310 | ||
$content=Get-Content "./py310/python310._pth"; $content | ForEach-Object {if ($_.ReadCount -eq 3) {"Lib\\site-packages"} else {$_}} | Set-Content ./py310/python310._pth | ||
|
@@ -39,19 +40,24 @@ jobs: | |
Copy-Item -Path "${{ steps.cp310.outputs.python-path }}/../include" -Destination "py310/include" -Recurse | ||
Copy-Item -Path "${{ steps.cp310.outputs.python-path }}/../libs" -Destination "py310/libs" -Recurse | ||
./py310/python -m pip install cyac==1.9 | ||
go install github.com/wailsapp/wails/v2/cmd/wails@v2.8.0 | ||
go install github.com/wailsapp/wails/v2/cmd/wails@v2.9.2 | ||
del ./backend-python/rwkv_pip/cpp/librwkv.dylib | ||
del ./backend-python/rwkv_pip/cpp/librwkv.so | ||
(Get-Content -Path ./backend-golang/app.go) -replace "//go:custom_build windows ", "" | Set-Content -Path ./backend-golang/app.go | ||
(Get-Content -Path ./backend-golang/utils.go) -replace "//go:custom_build windows ", "" | Set-Content -Path ./backend-golang/utils.go | ||
go install mvdan.cc/[email protected] | ||
make | ||
Rename-Item -Path "build/bin/RWKV-Runner.exe" -NewName "RWKV-Runner_windows_x64.exe" | ||
make debug | ||
Rename-Item -Path "build/bin/RWKV-Runner.exe" -NewName "RWKV-Runner-windows_debug.exe" | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: RWKV-Runner_windows_x64.exe | ||
path: build/bin/RWKV-Runner_windows_x64.exe | ||
path: | | ||
build/bin/RWKV-Runner_windows_x64.exe | ||
build/bin/RWKV-Runner-windows_debug.exe | ||
linux: | ||
runs-on: ubuntu-20.04 | ||
|
@@ -61,14 +67,14 @@ jobs: | |
ref: master | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.20.5" | ||
go-version: "1.20.14" | ||
- run: | | ||
wget https://github.com/josStorer/ai00_rwkv_server/releases/latest/download/webgpu_server_linux_x86_64 -O ./backend-rust/webgpu_server | ||
wget https://github.com/josStorer/web-rwkv-converter/releases/latest/download/web-rwkv-converter_linux_x86_64 -O ./backend-rust/web-rwkv-converter | ||
sudo apt-get update | ||
sudo apt-get install upx | ||
sudo apt-get install build-essential libgtk-3-dev libwebkit2gtk-4.0-dev libasound2-dev | ||
go install github.com/wailsapp/wails/v2/cmd/wails@v2.8.0 | ||
go install github.com/wailsapp/wails/v2/cmd/wails@v2.9.2 | ||
rm ./backend-python/rwkv_pip/wkv_cuda.pyd | ||
rm ./backend-python/rwkv_pip/rwkv5.pyd | ||
rm ./backend-python/rwkv_pip/rwkv6.pyd | ||
|
@@ -93,11 +99,11 @@ jobs: | |
ref: master | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.20.5" | ||
go-version: "1.20.14" | ||
- run: | | ||
wget https://github.com/josStorer/ai00_rwkv_server/releases/latest/download/webgpu_server_darwin_aarch64 -O ./backend-rust/webgpu_server | ||
wget https://github.com/josStorer/web-rwkv-converter/releases/latest/download/web-rwkv-converter_darwin_aarch64 -O ./backend-rust/web-rwkv-converter | ||
go install github.com/wailsapp/wails/v2/cmd/wails@v2.8.0 | ||
go install github.com/wailsapp/wails/v2/cmd/wails@v2.9.2 | ||
rm ./backend-python/rwkv_pip/wkv_cuda.pyd | ||
rm ./backend-python/rwkv_pip/rwkv5.pyd | ||
rm ./backend-python/rwkv_pip/rwkv6.pyd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.