feat(runners): display Xcode SDKs, Simulators, BuildTools, and PackageManagers
Some checks are pending
Build and Release / Lint (push) Waiting to run
Build and Release / Unit Tests (push) Waiting to run
Build and Release / Integration Tests (PostgreSQL) (push) Waiting to run
Build and Release / Create Release (push) Waiting to run
Build and Release / Build Binaries (amd64, darwin) (push) Blocked by required conditions
Build and Release / Build Binaries (amd64, linux) (push) Blocked by required conditions
Build and Release / Build Binaries (amd64, windows) (push) Blocked by required conditions
Build and Release / Build Binaries (arm64, darwin) (push) Blocked by required conditions
Build and Release / Build Binaries (arm64, linux) (push) Blocked by required conditions
Some checks are pending
Build and Release / Lint (push) Waiting to run
Build and Release / Unit Tests (push) Waiting to run
Build and Release / Integration Tests (PostgreSQL) (push) Waiting to run
Build and Release / Create Release (push) Waiting to run
Build and Release / Build Binaries (amd64, darwin) (push) Blocked by required conditions
Build and Release / Build Binaries (amd64, linux) (push) Blocked by required conditions
Build and Release / Build Binaries (amd64, windows) (push) Blocked by required conditions
Build and Release / Build Binaries (arm64, darwin) (push) Blocked by required conditions
Build and Release / Build Binaries (arm64, linux) (push) Blocked by required conditions
- Add XcodeInfo struct for macOS runner capabilities (version, build, SDKs, simulators) - Add BuildTools and PackageManagers fields to RunnerCapability struct - Update runner_edit.tmpl to display: - Xcode info with SDKs and Simulators for macOS runners - Build Tools (gcc, g++, msbuild, etc.) for all platforms - Package Managers (apt, brew, chocolatey, etc.) for all platforms This aligns with act_runner capability detection which already reports these fields. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -28,16 +28,27 @@ type DistroInfo struct {
|
||||
PrettyName string `json:"pretty_name,omitempty"` // e.g., "Ubuntu 24.04 LTS"
|
||||
}
|
||||
|
||||
// XcodeInfo holds Xcode-specific information for macOS runners
|
||||
type XcodeInfo struct {
|
||||
Version string `json:"version,omitempty"`
|
||||
Build string `json:"build,omitempty"`
|
||||
SDKs []string `json:"sdks,omitempty"`
|
||||
Simulators []string `json:"simulators,omitempty"`
|
||||
}
|
||||
|
||||
// RunnerCapability represents the detailed capabilities of a runner
|
||||
type RunnerCapability struct {
|
||||
OS string `json:"os"`
|
||||
Arch string `json:"arch"`
|
||||
Distro *DistroInfo `json:"distro,omitempty"`
|
||||
Xcode *XcodeInfo `json:"xcode,omitempty"`
|
||||
Docker bool `json:"docker"`
|
||||
DockerCompose bool `json:"docker_compose"`
|
||||
ContainerRuntime string `json:"container_runtime,omitempty"`
|
||||
Shell []string `json:"shell,omitempty"`
|
||||
Tools map[string][]string `json:"tools,omitempty"`
|
||||
BuildTools []string `json:"build_tools,omitempty"`
|
||||
PackageManagers []string `json:"package_managers,omitempty"`
|
||||
Features *CapabilityFeatures `json:"features,omitempty"`
|
||||
Limitations []string `json:"limitations,omitempty"`
|
||||
Disk *DiskInfo `json:"disk,omitempty"`
|
||||
|
||||
@@ -174,6 +174,37 @@
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
{{if .RunnerCapabilities.Xcode}}
|
||||
<div class="field tw-mb-3">
|
||||
<label>Xcode</label>
|
||||
<div>
|
||||
{{if .RunnerCapabilities.Xcode.Version}}
|
||||
<span class="ui small blue label">{{.RunnerCapabilities.Xcode.Version}}{{if .RunnerCapabilities.Xcode.Build}} ({{.RunnerCapabilities.Xcode.Build}}){{end}}</span>
|
||||
{{end}}
|
||||
</div>
|
||||
{{if .RunnerCapabilities.Xcode.SDKs}}
|
||||
<div class="tw-mt-2">
|
||||
<label class="tw-text-xs" style="opacity: 0.7;">SDKs</label>
|
||||
<div class="tw-flex tw-flex-wrap tw-gap-1">
|
||||
{{range .RunnerCapabilities.Xcode.SDKs}}
|
||||
<span class="ui small olive label">{{.}}</span>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
{{if .RunnerCapabilities.Xcode.Simulators}}
|
||||
<div class="tw-mt-2">
|
||||
<label class="tw-text-xs" style="opacity: 0.7;">Simulators</label>
|
||||
<div class="tw-flex tw-flex-wrap tw-gap-1">
|
||||
{{range .RunnerCapabilities.Xcode.Simulators}}
|
||||
<span class="ui small violet label">{{.}}</span>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{if .RunnerCapabilities.Shell}}
|
||||
<div class="field tw-mb-3">
|
||||
<label>{{ctx.Locale.Tr "actions.runners.capabilities.shells"}}</label>
|
||||
@@ -196,6 +227,28 @@
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{if .RunnerCapabilities.BuildTools}}
|
||||
<div class="field tw-mb-3">
|
||||
<label>Build Tools</label>
|
||||
<div class="tw-flex tw-flex-wrap tw-gap-1">
|
||||
{{range .RunnerCapabilities.BuildTools}}
|
||||
<span class="ui small brown label">{{.}}</span>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{if .RunnerCapabilities.PackageManagers}}
|
||||
<div class="field tw-mb-3">
|
||||
<label>Package Managers</label>
|
||||
<div class="tw-flex tw-flex-wrap tw-gap-1">
|
||||
{{range .RunnerCapabilities.PackageManagers}}
|
||||
<span class="ui small pink label">{{.}}</span>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{if .RunnerCapabilities.Limitations}}
|
||||
<div class="field tw-mb-3">
|
||||
<label>{{ctx.Locale.Tr "actions.runners.capabilities.limitations"}}</label>
|
||||
|
||||
Reference in New Issue
Block a user