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