diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 00000000..e89f586b --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -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 \ No newline at end of file