mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-06-08 05:19:56 +00:00
ci: tweaks & add new release action
This commit is contained in:
parent
4cc365d9d2
commit
45b71f2386
@ -1,9 +1,10 @@
|
|||||||
name: "Build Hysteria 2"
|
name: "Build master branch"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "wip-hy2"
|
- master
|
||||||
|
- wip-hy2
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -31,8 +32,14 @@ jobs:
|
|||||||
export HY_APP_PLATFORMS=$(sed 's/\r$//' platforms.txt | awk '!/^#/ && !/^$/' | paste -sd ",")
|
export HY_APP_PLATFORMS=$(sed 's/\r$//' platforms.txt | awk '!/^#/ && !/^$/' | paste -sd ",")
|
||||||
python hyperbole.py build -r
|
python hyperbole.py build -r
|
||||||
|
|
||||||
|
- name: Generate hashes
|
||||||
|
run: |
|
||||||
|
for file in build/*; do
|
||||||
|
sha256sum $file >> build/hashes.txt
|
||||||
|
done
|
||||||
|
|
||||||
- name: Archive
|
- name: Archive
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: hy2-wip-${{ github.sha }}
|
name: hysteria-master
|
||||||
path: build
|
path: build
|
43
.github/workflows/release.yml
vendored
Normal file
43
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
name: "Build release"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- app/v*.*.*
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: "1.21"
|
||||||
|
|
||||||
|
- name: Setup Python # This is for the build script
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.11"
|
||||||
|
|
||||||
|
- name: Run build script
|
||||||
|
run: |
|
||||||
|
export HY_APP_PLATFORMS=$(sed 's/\r$//' platforms.txt | awk '!/^#/ && !/^$/' | paste -sd ",")
|
||||||
|
python hyperbole.py build -r
|
||||||
|
|
||||||
|
- name: Generate hashes
|
||||||
|
run: |
|
||||||
|
for file in build/*; do
|
||||||
|
sha256sum $file >> build/hashes.txt
|
||||||
|
done
|
||||||
|
|
||||||
|
- name: Upload
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: build/*
|
Loading…
x
Reference in New Issue
Block a user