feat(workflow): add build workflow for FRP binaries

This commit is contained in:
2025-10-20 21:04:25 +08:00
parent e4f1ec648f
commit 045c16dfad

View File

@@ -0,0 +1,49 @@
name: Build FRP Binaries
on:
push:
branches:
- '**'
tags:
- '**'
workflow_dispatch:
inputs:
tag:
description: 'Manual build tag'
required: false
default: 'manual'
permissions:
contents: read
jobs:
build:
name: Build and Package FRP
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Set up dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y zip make gcc g++ upx
- name: Run build script
run: |
chmod +x ./package.sh
./package.sh
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: frp-packages
path: release/packages