mirror of
https://gitlab.com/fscarmen/warp.git
synced 2026-06-15 03:25:42 +08:00
ec79514721
Former-commit-id: 2651ecf259714d104afb9c142864096256e6c043
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: Cross compile WireProxy
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
# push:
|
|
# tags:
|
|
# - "v*"
|
|
|
|
jobs:
|
|
WireProxy:
|
|
|
|
name: Cross compile WireProxy
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
env:
|
|
workdir: ./WireProxy
|
|
VERSION: 1.0.3
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3.5.3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Git clone WireProxy
|
|
run: |
|
|
git clone https://github.com/octeep/wireproxy.git ${{ env.workdir }}
|
|
cp ./.github/wireproxy-releaser.yml ${{ env.workdir }}/.goreleaser.yml
|
|
- name: Set up GoReleaser
|
|
uses: actions/setup-go@v4.0.1
|
|
with:
|
|
go-version: "1.18"
|
|
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v4.3.0
|
|
with:
|
|
distribution: goreleaser
|
|
workdir: ${{ env.workdir }}
|
|
version: latest
|
|
args: release --clean
|
|
|
|
- name: Release binaries
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
tag_name: WireProxy_v${{ env.VERSION }}
|
|
files: ${{ env.workdir }}/dist/*.tar.gz
|