From a6f28cd782df461fb3387e91edca4b0187bc5ab8 Mon Sep 17 00:00:00 2001 From: gitv2ray <71534870+gitv2ray@users.noreply.github.com> Date: Mon, 28 Mar 2022 14:45:55 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 77d6c9c..39d8a30 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,26 @@ on: workflow_dispatch: jobs: + windowsAmd64Build: + name: Build Windows amd64 Version + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setting up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + - name: Building Windows amd64 Version + run: | + CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o WireProxy_amd64.exe -v main.go + mkdir release_windows_amd64 + mv WireProxy_amd64.exe wireproxy.exe + cp wireproxy.exe release_windows_amd64/wireproxy.exe + - name: Upload Windows amd64 Version + uses: actions/upload-artifact@v1 + with: + name: WireProxy_windows_amd64 + path: release_linux_amd64 linuxAmd64Build: name: Build Linux amd64 Version runs-on: ubuntu-latest @@ -62,4 +82,4 @@ jobs: uses: actions/upload-artifact@v1 with: name: WireProxy_linux_s390x - path: release_linux_s390x \ No newline at end of file + path: release_linux_s390x