wireproxy/.github/workflows/wireproxy.yml
Evsyukov Denis a2d7aecb6f
fix: improvements in memory consumption (#100)
* fix: must close the connection after processing

I think it should help to close #80

* feat: migration to github.com/things-go/go-socks5

- preallocate config slices
- not used interfaces in consumer
- do not allocate new variables in loops

* feat: close connection after full processing

* feat: correct process sigint signal

* feat: improve build system

* fix: http proxy

* feat: update golangci-lint-action to v3.7.0

* feat: correct process routines

* fix: close http conn correctly

* feat: update golangci-lint-action to v4

* fix: goreleaser used clean now
2024-02-11 12:45:43 +00:00

51 lines
1.1 KiB
YAML

name: Cross compile WireProxy
on:
workflow_dispatch:
create:
tags:
- v*
jobs:
WireProxy:
name: Cross compile WireProxy
runs-on: ubuntu-20.04
env:
workdir: ./WireProxy
steps:
- name: Checkout code
uses: actions/checkout@master
with:
fetch-depth: 0
- name: Git clone WireProxy
run: |
git clone https://github.com/pufferffish/wireproxy.git ${{ env.workdir }}
cp ./.github/wireproxy-releaser.yml ${{ env.workdir }}/.goreleaser.yml
- name: Set up GoReleaser
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
workdir: ${{ env.workdir }}
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release binaries
uses: softprops/action-gh-release@v1
with:
tag_name: wireproxy
files: ${{ env.workdir }}/dist/*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}