From 3b429626973282eb091691c33f674b53f6e3b513 Mon Sep 17 00:00:00 2001 From: misakano7545 Date: Sun, 27 Mar 2022 21:49:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0GitHub=20Actions=20CI?= =?UTF-8?q?=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..77d6c9c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,65 @@ +name: Build +on: + workflow_dispatch: + +jobs: + linuxAmd64Build: + name: Build Linux 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 Linux amd64 Version + run: | + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o WireProxy_amd64 -v main.go + mkdir release_linux_amd64 + mv WireProxy_amd64 wireproxy + cp wireproxy release_linux_amd64/wireproxy + - name: Upload Linux amd64 Version + uses: actions/upload-artifact@v1 + with: + name: WireProxy_linux_amd64 + path: release_linux_amd64 + linuxArm64Build: + name: Build Linux arm64 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 Linux arm64 Version + run: | + CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o WireProxy_arm64 -v main.go + mkdir release_linux_arm64 + mv WireProxy_arm64 wireproxy + cp wireproxy release_linux_arm64/wireproxy + - name: Upload Linux arm64 Version + uses: actions/upload-artifact@v1 + with: + name: WireProxy_linux_arm64 + path: release_linux_arm64 + linuxS390xBuild: + name: Build Linux s390x 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 Linux s390x Version + run: | + CGO_ENABLED=0 GOOS=linux GOARCH=s390x go build -o WireProxy_s390x -v main.go + mkdir release_linux_s390x + mv WireProxy_s390x wireproxy + cp wireproxy release_linux_s390x/wireproxy + - name: Upload Linux s390x Version + uses: actions/upload-artifact@v1 + with: + name: WireProxy_linux_s390x + path: release_linux_s390x \ No newline at end of file