From f7227cd1c1ad66a1a7f61a036ee20f0479e46002 Mon Sep 17 00:00:00 2001 From: josc146 Date: Wed, 6 Dec 2023 23:08:20 +0800 Subject: [PATCH] update ci webgpu components --- .github/workflows/release.yml | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 55485bf..8a0d01a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,7 +57,9 @@ jobs: with: args: install upx - run: | - Start-BitsTransfer https://github.com/josStorer/LibreHardwareMonitor.Console/releases/download/v0.1.0/LibreHardwareMonitor.Console.zip ./LibreHardwareMonitor.Console.zip + Start-BitsTransfer https://github.com/josStorer/ai00_rwkv_server/releases/latest/download/webgpu_server_windows.exe ./backend-rust/webgpu_server.exe + Start-BitsTransfer https://github.com/josStorer/web-rwkv-converter/releases/latest/download/web-rwkv-converter_windows.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 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 @@ -67,11 +69,6 @@ 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 - git clone https://github.com/josStorer/ai00_rwkv_server --depth=1 - cd ai00_rwkv_server - cargo build --release - mv ./target/release/ai00_server.exe ../backend-rust/webgpu_server.exe - cd .. go install github.com/wailsapp/wails/v2/cmd/wails@latest (Get-Content -Path ./backend-golang/app.go) -replace "//go:custom_build windows ", "" | Set-Content -Path ./backend-golang/app.go make @@ -95,17 +92,11 @@ jobs: override: true target: wasm32-unknown-unknown - run: | + wget https://github.com/josStorer/ai00_rwkv_server/releases/latest/download/webgpu_server_linux -o ./backend-rust/webgpu_server + wget https://github.com/josStorer/web-rwkv-converter/releases/latest/download/web-rwkv-converter_linux -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 - git clone https://github.com/josStorer/ai00_rwkv_server --depth=1 - cd ai00_rwkv_server - sudo apt-get install libudev-dev - sudo apt-get install libasound2-dev - rustup target add x86_64-unknown-linux-gnu - cargo build --release --target x86_64-unknown-linux-gnu - mv ./target/x86_64-unknown-linux-gnu/release/ai00_server ../backend-rust/webgpu_server - cd .. go install github.com/wailsapp/wails/v2/cmd/wails@latest rm ./backend-python/rwkv_pip/wkv_cuda.pyd rm ./backend-python/rwkv_pip/rwkv5.pyd @@ -133,12 +124,8 @@ jobs: override: true target: wasm32-unknown-unknown - run: | - git clone https://github.com/josStorer/ai00_rwkv_server --depth=1 - cd ai00_rwkv_server - rustup target add aarch64-apple-darwin - cargo build --release --target aarch64-apple-darwin - mv ./target/aarch64-apple-darwin/release/ai00_server ../backend-rust/webgpu_server - cd .. + wget https://github.com/josStorer/ai00_rwkv_server/releases/latest/download/webgpu_server_darwin -o ./backend-rust/webgpu_server + wget https://github.com/josStorer/web-rwkv-converter/releases/latest/download/web-rwkv-converter_darwin -o ./backend-rust/web-rwkv-converter go install github.com/wailsapp/wails/v2/cmd/wails@latest rm ./backend-python/rwkv_pip/wkv_cuda.pyd rm ./backend-python/rwkv_pip/rwkv5.pyd