mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-26 06:19:57 +00:00
chore: merge tun & notun build
This commit is contained in:
parent
dbff7645ed
commit
233c434411
2
.github/workflows/build-master.yml
vendored
2
.github/workflows/build-master.yml
vendored
@ -30,7 +30,7 @@ jobs:
|
|||||||
TIME: "${{ steps.current-time.outputs.time }}"
|
TIME: "${{ steps.current-time.outputs.time }}"
|
||||||
with:
|
with:
|
||||||
xgo_version: latest
|
xgo_version: latest
|
||||||
go_version: latest
|
go_version: 1.17
|
||||||
dest: dist
|
dest: dist
|
||||||
prefix: hysteria
|
prefix: hysteria
|
||||||
targets: linux/amd64,linux/386,linux/arm-5,linux/arm-7,linux/arm64,linux/mipsle,darwin-10.12/amd64,darwin-10.12/arm64,windows-6.0/amd64,windows-6.0/386
|
targets: linux/amd64,linux/386,linux/arm-5,linux/arm-7,linux/arm64,linux/mipsle,darwin-10.12/amd64,darwin-10.12/arm64,windows-6.0/amd64,windows-6.0/386
|
||||||
|
56
.github/workflows/release-tun.yml
vendored
56
.github/workflows/release-tun.yml
vendored
@ -1,56 +0,0 @@
|
|||||||
name: Build and release (tun)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- 'v*'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
build:
|
|
||||||
name: Build and release (tun)
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
|
||||||
|
|
||||||
steps:
|
|
||||||
|
|
||||||
- name: Check out
|
|
||||||
uses: actions/checkout@v2.4.0
|
|
||||||
|
|
||||||
- name: Get tag
|
|
||||||
uses: olegtarasov/get-tag@v2
|
|
||||||
id: tagName
|
|
||||||
|
|
||||||
- name: Get time
|
|
||||||
uses: gerred/actions/current-time@master
|
|
||||||
id: current-time
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
uses: crazy-max/ghaction-xgo@v1.6.1
|
|
||||||
env:
|
|
||||||
TIME: "${{ steps.current-time.outputs.time }}"
|
|
||||||
with:
|
|
||||||
xgo_version: latest
|
|
||||||
go_version: latest
|
|
||||||
dest: dist
|
|
||||||
prefix: hysteria
|
|
||||||
targets: linux/amd64,linux/386,linux/arm-5,linux/arm-7,linux/arm64,linux/mipsle,darwin-10.12/amd64,darwin-10.12/arm64,windows-6.0/amd64,windows-6.0/386
|
|
||||||
ldflags: -w -s -X main.appVersion=${{ env.GIT_TAG_NAME }} -X main.appCommit=${{ github.sha }} -X main.appDate=${{ env.TIME }}
|
|
||||||
pkg: cmd
|
|
||||||
|
|
||||||
- name: Upload
|
|
||||||
uses: softprops/action-gh-release@v1
|
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
./dist/hysteria-linux-amd64
|
|
||||||
./dist/hysteria-linux-386
|
|
||||||
./dist/hysteria-linux-arm-5
|
|
||||||
./dist/hysteria-linux-arm-7
|
|
||||||
./dist/hysteria-linux-arm64
|
|
||||||
./dist/hysteria-linux-mipsle
|
|
||||||
./dist/hysteria-darwin-10.12-amd64
|
|
||||||
./dist/hysteria-darwin-10.12-arm64
|
|
||||||
./dist/hysteria-windows-6.0-amd64.exe
|
|
||||||
./dist/hysteria-windows-6.0-386.exe
|
|
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@ -27,6 +27,19 @@ jobs:
|
|||||||
id: current-time
|
id: current-time
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
uses: crazy-max/ghaction-xgo@v1.6.1
|
||||||
|
env:
|
||||||
|
TIME: "${{ steps.current-time.outputs.time }}"
|
||||||
|
with:
|
||||||
|
xgo_version: latest
|
||||||
|
go_version: 1.17
|
||||||
|
dest: dist
|
||||||
|
prefix: hysteria
|
||||||
|
targets: linux/amd64,linux/386,linux/arm-5,linux/arm-7,linux/arm64,linux/mipsle,darwin-10.12/amd64,darwin-10.12/arm64,windows-6.0/amd64,windows-6.0/386
|
||||||
|
ldflags: -w -s -X main.appVersion=${{ env.GIT_TAG_NAME }} -X main.appCommit=${{ github.sha }} -X main.appDate=${{ env.TIME }}
|
||||||
|
pkg: cmd
|
||||||
|
|
||||||
|
- name: Build (notun)
|
||||||
uses: tobyxdd/go-cross-build@25e1ba1da2fb42ed9787b615f0e89235569c58fa
|
uses: tobyxdd/go-cross-build@25e1ba1da2fb42ed9787b615f0e89235569c58fa
|
||||||
env:
|
env:
|
||||||
TIME: "${{ steps.current-time.outputs.time }}"
|
TIME: "${{ steps.current-time.outputs.time }}"
|
||||||
@ -35,7 +48,7 @@ jobs:
|
|||||||
name: hysteria-notun
|
name: hysteria-notun
|
||||||
dest: ./dist/
|
dest: ./dist/
|
||||||
ldflags: -w -s -X main.appVersion=${{ env.GIT_TAG_NAME }} -X main.appCommit=${{ github.sha }} -X main.appDate=${{ env.TIME }}
|
ldflags: -w -s -X main.appVersion=${{ env.GIT_TAG_NAME }} -X main.appCommit=${{ github.sha }} -X main.appDate=${{ env.TIME }}
|
||||||
platforms: 'linux/amd64, linux/386, linux/arm, linux/arm64, linux/mipsle, darwin/amd64, darwin/arm64, windows/amd64, windows/386'
|
platforms: 'linux/amd64, linux/386, linux/arm, linux/arm64, linux/mipsle'
|
||||||
package: ./cmd
|
package: ./cmd
|
||||||
compress: false
|
compress: false
|
||||||
|
|
||||||
@ -44,6 +57,16 @@ jobs:
|
|||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
|
./dist/hysteria-linux-amd64
|
||||||
|
./dist/hysteria-linux-386
|
||||||
|
./dist/hysteria-linux-arm-5
|
||||||
|
./dist/hysteria-linux-arm-7
|
||||||
|
./dist/hysteria-linux-arm64
|
||||||
|
./dist/hysteria-linux-mipsle
|
||||||
|
./dist/hysteria-darwin-10.12-amd64
|
||||||
|
./dist/hysteria-darwin-10.12-arm64
|
||||||
|
./dist/hysteria-windows-6.0-amd64.exe
|
||||||
|
./dist/hysteria-windows-6.0-386.exe
|
||||||
./dist/hysteria-notun-linux-amd64
|
./dist/hysteria-notun-linux-amd64
|
||||||
./dist/hysteria-notun-linux-386
|
./dist/hysteria-notun-linux-386
|
||||||
./dist/hysteria-notun-linux-arm
|
./dist/hysteria-notun-linux-arm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user