Help us shape the future of Go! Take the 2026 Go Developer Survey

build

package
v0.2.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build() error

Build compiles ephemerd for the current OS/arch. On Windows this requires the two-stage build (Linux binary + rootfs embed).

func ForgeRunner

func ForgeRunner() error

ForgeRunner compiles the Forgejo Actions runner for the current OS/arch.

func GiteaRunner

func GiteaRunner() error

GiteaRunner compiles the Gitea Actions runner for the current OS/arch.

func Install

func Install() error

Install builds ephemerd and installs it to ~/bin, re-signing on macOS.

func Linuxembed

func Linuxembed() error

Linuxembed cross-compiles a static Linux ephemerd binary for embedding.

func Linuxembedarm64

func Linuxembedarm64() error

Linuxembedarm64 cross-compiles a static Linux ephemerd binary for arm64 embedding. Temporarily removes non-Linux runners from pkg/runner/embed/ so they don't get embedded in the Linux binary (which only needs the Linux runner).

func Macos

func Macos() error

Macos performs the Darwin build with embedded Linux VM assets: 1. Download aarch64 rootfs, kernel, and initrd 2. Cross-compile static Linux binary (linux/arm64) 3. Build macOS binary embedding all VM assets 4. Ad-hoc codesign with the virtualization entitlement (Vz requires it)

func Runners

func Runners()

Runners compiles both ephemerd-runner-forgejo and ephemerd-runner-gitea for the current OS/arch.

func RunnersAll

func RunnersAll() error

RunnersAll cross-compiles ephemerd-runner-forgejo and ephemerd-runner-gitea for all release platforms. Outputs go to dist/<name>-<os>-<arch>[.exe].

func Windows

func Windows() error

Windows performs the two-stage Windows build: 1. Cross-compile static Linux binary with Linux assets embedded 2. Build Windows binary embedding the Linux binary + Alpine rootfs + kernel + initrd

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL