-
Notifications
You must be signed in to change notification settings - Fork 4
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
3 changed files
with
69 additions
and
23 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Create release on new tag | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
build: | ||
name: Create release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Get tag name | ||
run: echo "ACFUNLIVE_BACKEND_TAG=$(echo "${{ github.ref_name }}" | sed 's/^v//')" >> $GITHUB_ENV | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "stable" | ||
- name: Get Go dependencies | ||
run: go get | ||
- name: Build Linux amd64 | ||
run: | | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o acbackend-linux-x64 | ||
tar -czvf acfunlive-backend-${{ env.ACFUNLIVE_BACKEND_TAG }}-linux-amd64.tar.gz acbackend-linux-x64 | ||
- name: Build Windows amd64 | ||
run: | | ||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o acbackend-win-x64.exe | ||
tar -czvf acfunlive-backend-${{ env.ACFUNLIVE_BACKEND_TAG }}-windows-amd64.tar.gz acbackend-win-x64.exe | ||
- name: Build Darwin amd64 | ||
run: | | ||
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o acbackend-mac-x64 | ||
tar -czvf acfunlive-backend-${{ env.ACFUNLIVE_BACKEND_TAG }}-darwin-amd64.tar.gz acbackend-mac-x64 | ||
- name: Build Darwin arm64 | ||
run: | | ||
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o acbackend-mac-arm64 | ||
tar -czvf acfunlive-backend-${{ env.ACFUNLIVE_BACKEND_TAG }}-darwin-arm64.tar.gz acbackend-mac-arm64 | ||
- name: Release artifacts | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "*.tar.gz" |
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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
module github.com/ACFUN-FOSS/acfunlive-backend | ||
|
||
go 1.22 | ||
go 1.23 | ||
|
||
toolchain go1.22.5 | ||
toolchain go1.23.4 | ||
|
||
require ( | ||
github.com/leemcloughlin/logfile v0.0.0-20201123203928-cff1c8a30a10 | ||
github.com/orzogc/acfundanmu v0.0.0-20240731152830-e5ccbde3078f | ||
github.com/orzogc/acfundanmu v0.0.0-20240910132643-93679007a97d | ||
github.com/orzogc/fastws v1.0.5-0.20230809182400-6c9094d8c52e | ||
github.com/segmentio/encoding v0.4.0 | ||
github.com/segmentio/encoding v0.4.1 | ||
github.com/thanhpk/randstr v1.0.4 | ||
github.com/ugjka/messenger v1.1.3 | ||
github.com/valyala/fasthttp v1.55.0 | ||
github.com/valyala/fasthttp v1.58.0 | ||
github.com/valyala/fastjson v1.6.4 | ||
) | ||
|
||
require ( | ||
facette.io/natsort v0.0.0-20181210072756-2cd4dd1e2dcb // indirect | ||
github.com/Workiva/go-datastructures v1.1.5 // indirect | ||
github.com/andybalholm/brotli v1.1.0 // indirect | ||
github.com/klauspost/compress v1.17.9 // indirect | ||
github.com/andybalholm/brotli v1.1.1 // indirect | ||
github.com/klauspost/compress v1.17.11 // indirect | ||
github.com/segmentio/asm v1.2.0 // indirect | ||
github.com/valyala/bytebufferpool v1.0.0 // indirect | ||
go.uber.org/atomic v1.11.0 // indirect | ||
golang.org/x/sys v0.22.0 // indirect | ||
google.golang.org/protobuf v1.34.2 // indirect | ||
golang.org/x/sys v0.28.0 // indirect | ||
google.golang.org/protobuf v1.35.2 // indirect | ||
) |
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