diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..8ba906f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Build + +on: + push: + pull_request: + branches: + - dev + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: 1.22 # 指定 Go 的版本 + + - name: Build + run: go build -o ./build . + + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + name: build-output + path: ./build