From 5d5b5fad4ef11e5cff16547baf17241c2ab4306f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=82=A5=E7=BE=8A?= Date: Fri, 3 Feb 2023 21:36:28 +0800 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..aa10c2c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 + + - name: Build + run: cd ./Golang && go build -o allinone + + - name: Upload + uses: actions/upload-artifact@v3 + with: + files: allinone + name: allinone_linux_amd64 + path: Golang