mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-02 03:57:38 +03:00
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
name: "Build master branch"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
|
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.23"
|
|
|
|
- name: Setup Python # This is for the build script
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- uses: nttld/setup-ndk@v1
|
|
id: setup-ndk
|
|
with:
|
|
ndk-version: r26b
|
|
add-to-path: false
|
|
|
|
- name: Run build script
|
|
env:
|
|
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
|
|
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: Archive
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: hysteria-master-${{ github.sha }}
|
|
path: build
|