|
|
@@ -41,13 +41,13 @@ jobs:
|
|
|
run: |
|
|
|
go mod download
|
|
|
VERSION=$(git describe --tags)
|
|
|
- go build -ldflags "-s -w -X 'one-api/common.Version=$VERSION' -extldflags '-static'" -o new-api-$VERSION
|
|
|
+ go build -ldflags "-s -w -X 'new-api/common.Version=$VERSION' -extldflags '-static'" -o new-api-$VERSION
|
|
|
- name: Build Backend (arm64)
|
|
|
run: |
|
|
|
sudo apt-get update
|
|
|
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y gcc-aarch64-linux-gnu
|
|
|
VERSION=$(git describe --tags)
|
|
|
- CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X 'one-api/common.Version=$VERSION' -extldflags '-static'" -o new-api-arm64-$VERSION
|
|
|
+ CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X 'new-api/common.Version=$VERSION' -extldflags '-static'" -o new-api-arm64-$VERSION
|
|
|
- name: Release
|
|
|
uses: softprops/action-gh-release@v2
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
|
@@ -87,7 +87,7 @@ jobs:
|
|
|
run: |
|
|
|
go mod download
|
|
|
VERSION=$(git describe --tags)
|
|
|
- go build -ldflags "-X 'one-api/common.Version=$VERSION'" -o new-api-macos-$VERSION
|
|
|
+ go build -ldflags "-X 'new-api/common.Version=$VERSION'" -o new-api-macos-$VERSION
|
|
|
- name: Release
|
|
|
uses: softprops/action-gh-release@v2
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
|
@@ -128,7 +128,7 @@ jobs:
|
|
|
run: |
|
|
|
go mod download
|
|
|
VERSION=$(git describe --tags)
|
|
|
- go build -ldflags "-s -w -X 'one-api/common.Version=$VERSION'" -o new-api-$VERSION.exe
|
|
|
+ go build -ldflags "-s -w -X 'new-api/common.Version=$VERSION'" -o new-api-$VERSION.exe
|
|
|
- name: Release
|
|
|
uses: softprops/action-gh-release@v2
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|