mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-04-29 19:01:42 +02:00
Merge pull request #28 from fscarmen/master
Cross build WireProxy on Actions
This commit is contained in:
commit
4174930331
2 changed files with 98 additions and 0 deletions
52
.github/wireproxy-releaser.yml
vendored
Normal file
52
.github/wireproxy-releaser.yml
vendored
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
project_name: Build wireproxy
|
||||||
|
before:
|
||||||
|
hooks:
|
||||||
|
- go mod tidy -v
|
||||||
|
builds:
|
||||||
|
- env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
ldflags:
|
||||||
|
- -s -w -X main.version={{.Version}} -X main.arch={{.Arch}}
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
- windows
|
||||||
|
- darwin
|
||||||
|
goarch:
|
||||||
|
- arm
|
||||||
|
- arm64
|
||||||
|
- 386
|
||||||
|
- amd64
|
||||||
|
- mips
|
||||||
|
- mipsle
|
||||||
|
- s390x
|
||||||
|
- riscv64
|
||||||
|
gomips:
|
||||||
|
- softfloat
|
||||||
|
ignore:
|
||||||
|
- goos: windows
|
||||||
|
goarch: arm
|
||||||
|
- goos: windows
|
||||||
|
goarch: arm64
|
||||||
|
main: ./cmd/wireproxy/
|
||||||
|
binary: wireproxy
|
||||||
|
universal_binaries:
|
||||||
|
- name_template: "wireproxy"
|
||||||
|
replace: false
|
||||||
|
checksum:
|
||||||
|
name_template: "checksums.txt"
|
||||||
|
snapshot:
|
||||||
|
name_template: "wireproxy"
|
||||||
|
archives:
|
||||||
|
- name_template: "wireproxy_{{ .Os }}_{{ .Arch }}"
|
||||||
|
files:
|
||||||
|
- none*
|
||||||
|
changelog:
|
||||||
|
sort: asc
|
||||||
|
filters:
|
||||||
|
exclude:
|
||||||
|
- "^docs:"
|
||||||
|
- "^test:"
|
||||||
|
- "^chore"
|
||||||
|
- Merge pull request
|
||||||
|
- Merge branch
|
||||||
|
- go mod tidy
|
46
.github/workflows/wireproxy.yml
vendored
Normal file
46
.github/workflows/wireproxy.yml
vendored
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
name: Cross compile WirePorxy
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
WirePorxy:
|
||||||
|
|
||||||
|
name: Cross compile WirePorxy
|
||||||
|
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
env:
|
||||||
|
workdir: ./WirePorxy
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Git clone WirePorxy
|
||||||
|
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@v2
|
||||||
|
with:
|
||||||
|
go-version: "1.17"
|
||||||
|
|
||||||
|
- name: Run GoReleaser
|
||||||
|
uses: goreleaser/goreleaser-action@v2
|
||||||
|
with:
|
||||||
|
distribution: goreleaser
|
||||||
|
workdir: ${{ env.workdir }}
|
||||||
|
version: latest
|
||||||
|
args: release --rm-dist
|
||||||
|
|
||||||
|
- name: Release binaries
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
tag_name: wireproxy
|
||||||
|
files: ${{ env.workdir }}/dist/*.tar.gz
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
Loading…
Add table
Add a link
Reference in a new issue