Skip to content

Commit

Permalink
Merge pull request #238 from sonic-chain/upgrade-2.3.0
Browse files Browse the repository at this point in the history
update README
  • Loading branch information
Normalnoise committed Dec 6, 2023
2 parents e17c0d8 + 7196710 commit 99be146
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ chmod +x ./install.sh
```
ulimit -SHn 1048576
export SWAN_PATH="/data/.swan"
nohup swan-provider-2.2.1-linux-amd64 daemon >> swan-provider.log 2>&1 &
nohup swan-provider-2.3.0-linux-amd64 daemon >> swan-provider.log 2>&1 &
```
### 选项:two: 从源代码构建
构建 `swan-provider` 需要安装以下依赖包:
Expand All @@ -77,9 +77,9 @@ sudo apt-get install -y nodejs
```
sudo apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang build-essential hwloc libhwloc-dev wget -y && sudo apt upgrade -y
```
- Go(需要 **1.19.5+**)
- Go(需要 **1.20+**)
```
wget -c https://golang.org/dl/go1.19.5.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local
wget -c https://golang.org/dl/go1.21.4.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local
```
```
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc && source ~/.bashrc
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ sudo apt-get install -y nodejs
```
sudo apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang build-essential hwloc libhwloc-dev wget -y && sudo apt upgrade -y
```
- Go(required **1.19.5+**)
- Go(required **1.20+**)
```
wget -c https://golang.org/dl/go1.19.5.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local
wget -c https://golang.org/dl/go1.21.4.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local
```
```
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc && source ~/.bashrc
Expand Down
1 change: 0 additions & 1 deletion build_from_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,4 @@ make ffi
make
chmod +x ./build/${BINARY_NAME}
make install-provider
./build/${BINARY_NAME} daemon # Run swan provider

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/Khan/genqlient v0.5.0
github.com/fatih/color v1.13.0
github.com/filswan/go-swan-lib v0.3.3
github.com/filswan/swan-boost-lib v0.0.0-20231128082343-fdf2ff201642
github.com/filswan/swan-boost-lib v0.0.1
github.com/gin-gonic/gin v1.9.1
github.com/google/uuid v1.3.0
github.com/itsjamie/gin-cors v0.0.0-20160420130702-97b4a9da7933
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ github.com/filecoin-project/specs-actors/v7 v7.0.1 h1:w72xCxijK7xs1qzmJiw+WYJaVt
github.com/filecoin-project/specs-actors/v7 v7.0.1/go.mod h1:tPLEYXoXhcpyLh69Ccq91SOuLXsPWjHiY27CzawjUEk=
github.com/filswan/go-swan-lib v0.3.3 h1:ZaKuSe+nE4CFn7jHaxbgVgz/O8wZxhv59OUC28tHZBo=
github.com/filswan/go-swan-lib v0.3.3/go.mod h1:o66+BeOgakzHTK0HgGLV1AJEhFU8Xjj3q0/NXkcP7qU=
github.com/filswan/swan-boost-lib v0.0.0-20231128082343-fdf2ff201642 h1:BSGzGsRmlPDrMYVD1jHqyCHgBRK6RV+M/5ixGhpVmZY=
github.com/filswan/swan-boost-lib v0.0.0-20231128082343-fdf2ff201642/go.mod h1:PHIqIpjh+BhRWZNloYKb/TJL+W/KHTA2unZNIr2/KRE=
github.com/filswan/swan-boost-lib v0.0.1 h1:n8FAqNKxBfydQbsKeRhd0IRQ6JUgoSZ72jt6M3c5Wwg=
github.com/filswan/swan-boost-lib v0.0.1/go.mod h1:eLav7X+NHYa7XEXSEtpuMCR4HUDesAQdSIP2rzsZGyY=
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc=
github.com/flynn/noise v1.0.0 h1:DlTHqmzmvcEiKj+4RYo/imoswx/4r6iBlCMfVtrMXpQ=
github.com/flynn/noise v1.0.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag=
Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

BINARY_NAME=swan-provider-2.2.1-linux-amd64
TAG_NAME=v2.2.1
BINARY_NAME=swan-provider-2.3.0-linux-amd64
TAG_NAME=v2.3.0
URL_PREFIX=https://github.com/filswan/go-swan-provider/releases/download

wget --no-check-certificate ${URL_PREFIX}/${TAG_NAME}/${BINARY_NAME}
Expand Down

0 comments on commit 99be146

Please sign in to comment.