From 100e9b4f1a6478af11abf6e3bff908740e48b52f Mon Sep 17 00:00:00 2001 From: lj Date: Thu, 23 Jul 2026 13:45:09 +0800 Subject: [PATCH] test --- .gitea/workflows/go-ci.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitea/workflows/go-ci.yaml diff --git a/.gitea/workflows/go-ci.yaml b/.gitea/workflows/go-ci.yaml new file mode 100644 index 0000000..38284be --- /dev/null +++ b/.gitea/workflows/go-ci.yaml @@ -0,0 +1,17 @@ +name: Go Build with Cache +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: 检出代码 + uses: actions/checkout@v4 + + - name: 设置 Go 并缓存 + uses: magnetikonline/action-golang-cache@v4 + with: + go-version-file: go.mod + + - name: 编译 + run: go build -o myapp . \ No newline at end of file