Files
orchard/.goreleaser.yml
T
Fedor Kororkov 461af8de47 Migrate CI from Cirrus CI to GitHub Actions (#447)
* Migrate CI to GitHub Actions

* Publish Orchard through the OpenAI Homebrew tap

* Scope release secrets to GoReleaser steps

* Separate release and snapshot trust paths

* Use GitHub-hosted macOS 26 runner

* Run macOS unit tests on hosted runner

* Update Homebrew install command

* Build Docker image with GoReleaser

* Use GitHub-hosted Linux runner

* Use smaller Vetu image for Linux tests

* Run Linux tests on hosted ARM runner

* Use host architecture for Linux integration tests

* Preinstall Cloud Hypervisor for Linux tests

* Select Linux test images by architecture

* Satisfy platform image lint rules

* Format platform image errors

* Enable KVM access for Linux tests

* Honor VM wait time in WebSocket requests

* Satisfy WebSocket client lint rules

* Allow hosted Linux integration tests more time
2026-07-16 17:57:06 -04:00

76 lines
1.8 KiB
YAML

version: 2
project_name: orchard
before:
hooks:
- go mod download
builds:
- main: cmd/orchard/main.go
ldflags: >
-X github.com/cirruslabs/orchard/internal/version.Version={{.Version}}
-X github.com/cirruslabs/orchard/internal/version.Commit={{.ShortCommit}}
-B gobuildid
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
archives:
- id: binary
formats:
- binary
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
- id: regular
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
release:
prerelease: auto
notarize:
macos:
- enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}'
sign:
certificate: "{{.Env.MACOS_SIGN_P12}}"
password: "{{.Env.MACOS_SIGN_PASSWORD}}"
notarize:
issuer_id: "{{.Env.MACOS_NOTARY_ISSUER_ID}}"
key_id: "{{.Env.MACOS_NOTARY_KEY_ID}}"
key: "{{.Env.MACOS_NOTARY_KEY}}"
dockers_v2:
- images:
- ghcr.io/openai/orchard
tags:
- "{{ .Tag }}"
- latest
platforms:
- linux/amd64
- linux/arm64
disable: "{{ .IsSnapshot }}"
brews:
- name: orchard
directory: Formula
ids:
- regular
repository:
owner: openai
name: homebrew-tools
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
branch: "orchard-{{ .Version }}"
pull_request:
enabled: true
install: |
bin.install "orchard"
generate_completions_from_executable(bin/"orchard", "completion")
caveats: See the Github repository for more information
homepage: https://github.com/openai/orchard
description: Orchestrator for running Tart Virtual Machines on a cluster of Apple Silicon devices
skip_upload: auto