mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-03 20:47:38 +03:00
Optimize release workflow & add more platforms
This commit is contained in:
parent
c0ce9c8ab0
commit
9c7d223712
1 changed files with 12 additions and 21 deletions
33
.github/workflows/release.yml
vendored
33
.github/workflows/release.yml
vendored
|
@ -37,29 +37,17 @@ jobs:
|
|||
uses: gerred/actions/current-time@master
|
||||
id: current-time
|
||||
|
||||
- name: Build amd64
|
||||
uses: izumin5210/action-go-crossbuild@v1.0.0
|
||||
- name: Build
|
||||
uses: thatisuday/go-cross-build@v1
|
||||
env:
|
||||
TIME: "${{ steps.current-time.outputs.time }}"
|
||||
with:
|
||||
name: hysteria
|
||||
arch: amd64
|
||||
dest: ./dist/
|
||||
ldflags: -w -s -X main.appVersion=${{ env.GIT_TAG_NAME }} -X main.appCommit=${{ github.sha }} -X main.appDate=${{ env.TIME }}
|
||||
os: windows,linux,darwin
|
||||
package: ./cmd
|
||||
|
||||
- name: Build embedded
|
||||
uses: izumin5210/action-go-crossbuild@v1.0.0
|
||||
env:
|
||||
TIME: "${{ steps.current-time.outputs.time }}"
|
||||
with:
|
||||
name: hysteria
|
||||
arch: arm,mipsle
|
||||
dest: ./dist/
|
||||
ldflags: -w -s -X main.appVersion=${{ env.GIT_TAG_NAME }} -X main.appCommit=${{ github.sha }} -X main.appDate=${{ env.TIME }}
|
||||
os: linux
|
||||
platforms: 'linux/amd64, linux/386, linux/arm, linux/arm64, linux/mipsle, darwin/amd64, windows/amd64, windows/386'
|
||||
package: ./cmd
|
||||
compress: false
|
||||
|
||||
- name: Upload
|
||||
uses: meeDamian/github-release@2.0
|
||||
|
@ -68,8 +56,11 @@ jobs:
|
|||
gzip: false
|
||||
allow_override: true
|
||||
files: >
|
||||
./dist/hysteria_windows_amd64.zip
|
||||
./dist/hysteria_linux_amd64.tar.gz
|
||||
./dist/hysteria_darwin_amd64.zip
|
||||
./dist/hysteria_linux_arm.tar.gz
|
||||
./dist/hysteria_linux_mipsle.tar.gz
|
||||
./dist/hysteria-linux-amd64
|
||||
./dist/hysteria-linux-386
|
||||
./dist/hysteria-linux-arm
|
||||
./dist/hysteria-linux-arm64
|
||||
./dist/hysteria-linux-mipsle
|
||||
./dist/hysteria-darwin-amd64
|
||||
./dist/hysteria-windows-amd64.exe
|
||||
./dist/hysteria-windows-386.exe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue