From 5e2020efff4855e66d87f4ac73d2cb7022ea72ad Mon Sep 17 00:00:00 2001 From: Li4n0 Date: Sun, 11 Jul 2021 16:23:15 +0800 Subject: [PATCH] ci: remove architectures other than amd64 --- .github/workflows/release.yml | 20 ++++++-------------- README.md | 3 ++- README.zh-CN.md | 2 +- 3 files changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bc10fc9..911756b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,14 +12,11 @@ jobs: with: go-version: '^1.16.0' - name: compile - env: - CGO_ENABLE: 1 - CGO_LDFLAGS: -static run: | GOARCH="amd64" go build -v -ldflags="-s -w -extldflags=-static" -tags netgo -trimpath -o "bin/revsuit_linux_amd64" ./cmd/revsuit/revsuit.go - GOARCH="386" go build -v -ldflags="-s -w -extldflags=-static" -tags netgo -trimpath -o "bin/revsuit_linux_i386" ./cmd/revsuit/revsuit.go - GOARCH="arm" go build -v -ldflags="-s -w -extldflags=-static" -tags netgo -trimpath -o "bin/revsuit_linux_arm" ./cmd/revsuit/revsuit.go - GOARCH="arm64" go build -v -ldflags="-s -w -extldflags=-static" -tags netgo -trimpath -o "bin/revsuit_linux_arm64" ./cmd/revsuit/revsuit.go +# GOARCH="386" go build -v -ldflags="-s -w -extldflags=-static" -tags netgo -trimpath -o "bin/revsuit_linux_i386" ./cmd/revsuit/revsuit.go +# GOARCH="arm" go build -v -ldflags="-s -w -extldflags=-static" -tags netgo -trimpath -o "bin/revsuit_linux_arm" ./cmd/revsuit/revsuit.go +# GOARCH="arm64" go build -v -ldflags="-s -w -extldflags=-static" -tags netgo -trimpath -o "bin/revsuit_linux_arm64" ./cmd/revsuit/revsuit.go - name: Upload the artifacts uses: li4n0/upload-release-action@v2 with: @@ -37,11 +34,9 @@ jobs: with: go-version: '^1.16.0' - name: compile - env: - CGO_ENABLE: 1 run: | GOARCH="amd64" go build -v -ldflags="-s -w" -trimpath -o "bin/revsuit_darwin_amd64" ./cmd/revsuit/revsuit.go - GOARCH="arm64" go build -v -ldflags="-s -w" -trimpath -o "bin/revsuit_darwin_arm64" ./cmd/revsuit/revsuit.go +# GOARCH="arm64" go build -v -ldflags="-s -w" -trimpath -o "bin/revsuit_darwin_arm64" ./cmd/revsuit/revsuit.go - name: Upload the artifacts uses: li4n0/upload-release-action@v2 with: @@ -59,13 +54,10 @@ jobs: with: go-version: '^1.16.0' - name: compile - env: - CGO_ENABLE: 1 - CGO_LDFLAGS: -static run: | env GOARCH=amd64 go build -v -ldflags="-s -w -extldflags=-static" -trimpath -o "bin/revsuit_windows_amd64.exe" ./cmd/revsuit/revsuit.go - env GOARCH=386 go build -v -ldflags="-s -w -extldflags=-static" -trimpath -o "bin/revsuit_windows_i386.exe" ./cmd/revsuit/revsuit.go - env GOARCH=arm go build -v -ldflags="-s -w -extldflags=-static" -trimpath -o "bin/revsuit_windows_arm.exe" ./cmd/revsuit/revsuit.go +# env GOARCH=386 go build -v -ldflags="-s -w -extldflags=-static" -trimpath -o "bin/revsuit_windows_i386.exe" ./cmd/revsuit/revsuit.go +# env GOARCH=arm go build -v -ldflags="-s -w -extldflags=-static" -trimpath -o "bin/revsuit_windows_arm.exe" ./cmd/revsuit/revsuit.go - name: Upload the artifacts uses: li4n0/upload-release-action@v2 with: diff --git a/README.md b/README.md index 5d1c523..c14f228 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,8 @@ Powerful: ### Preparation -Download the latest release firstly. +Download the latest release firstly. For the time being, only the binary for amd64 architecture is available for +download, if you need to use it in other architectures, you can compile it yourself. RevSuit will generate default configuration file on first run. Modify the configuration file according to your needs, then re-run. diff --git a/README.zh-CN.md b/README.zh-CN.md index 369ab87..8f751be 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -23,7 +23,7 @@ RevSuit 是一款灵活并且强大的反连平台。目前支持 HTTP、DNS、R ### 安装 -在 Releases 里下载最新版本的 RevSuit。 +在 Releases 里下载最新版本的 RevSuit。暂时只提供 amd64 架构下的二进制文件下载,如需要在其它架构下使用,可以自行编译。 RevSuit 首次运行时将会生成配置文件模板,你需要编辑其中的内容然后重新运行。