2
0

4 Commits

Author SHA1 Message Date
372fd8fdc5 Add CI/CD workflows for build and release
Some checks are pending
CI / build (push) Waiting to run
Release / release (push) Successful in 7m41s
- Add CI workflow for build/test on push and PR
- Add release workflow to create releases on tags

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 05:00:06 -05:00
40c7487409 Fix import paths in connect generated files
Update import paths from code.gitea.io/actions-proto-go to
git.marketally.com/gitcaddy/actions-proto-go in connect files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 04:58:05 -05:00
9580480f90 Update module path to git.marketally.com/gitcaddy/actions-proto-go 2026-01-10 04:48:09 -05:00
07088bedbc Add CapabilitiesJson field to DeclareRequest
This allows runners to report their capabilities (OS, arch, docker,
tools, etc.) as a JSON string when declaring themselves to Gitea.

This enables AI-friendly workflow generation by providing structured
capability information that AI tools can query before writing workflows.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 04:46:26 -05:00
6 changed files with 68 additions and 5 deletions

27
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,27 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Build
run: go build ./...
env:
GOPRIVATE: git.marketally.com
- name: Test
run: go test ./...
env:
GOPRIVATE: git.marketally.com

View File

@@ -0,0 +1,28 @@
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Build
run: go build ./...
env:
GOPRIVATE: git.marketally.com
- name: Create Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

2
go.mod
View File

@@ -1,4 +1,4 @@
module code.gitea.io/actions-proto-go
module git.marketally.com/gitcaddy/actions-proto-go
go 1.19

View File

@@ -5,7 +5,7 @@
package pingv1connect
import (
v1 "code.gitea.io/actions-proto-go/ping/v1"
v1 "git.marketally.com/gitcaddy/actions-proto-go/ping/v1"
connect "connectrpc.com/connect"
context "context"
errors "errors"

View File

@@ -282,8 +282,9 @@ type DeclareRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
Labels []string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
CapabilitiesJson string `protobuf:"bytes,3,opt,name=capabilities_json,json=capabilitiesJson,proto3" json:"capabilities_json,omitempty"`
}
func (x *DeclareRequest) Reset() {
@@ -332,6 +333,13 @@ func (x *DeclareRequest) GetLabels() []string {
return nil
}
func (x *DeclareRequest) GetCapabilitiesJson() string {
if x != nil {
return x.CapabilitiesJson
}
return ""
}
type DeclareResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache

View File

@@ -5,7 +5,7 @@
package runnerv1connect
import (
v1 "code.gitea.io/actions-proto-go/runner/v1"
v1 "git.marketally.com/gitcaddy/actions-proto-go/runner/v1"
connect "connectrpc.com/connect"
context "context"
errors "errors"